Created
January 3, 2018 13:44
-
-
Save deepak-rajpal/bc7aae3402e614a80dfbd930e1a23341 to your computer and use it in GitHub Desktop.
This snippets will include php file only in custom taxonomies section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Required files */ | |
global $pagenow; | |
if (($pagenow == 'edit-tags.php' || $pagenow == 'term.php') && isset($_GET['taxonomy']) && $_GET['taxonomy'] == 'service_type') { | |
require_once ( THM_DIR_PATH . '/inc/category-media.php' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment