Created
July 20, 2014 04:25
-
-
Save jchristopher/b31f935446d4c9b3629a to your computer and use it in GitHub Desktop.
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
<?php | |
// custom hook for Template Map | |
add_filter( 'template_map_post_types', function( $cpts, $section ) { | |
switch( $section ) { | |
case 'template-about.php': | |
$cpts = array( 'team' ); | |
break; | |
} | |
return $cpts; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment