Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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