Created
January 16, 2018 09:40
-
-
Save natenault/dc9330464928d51bfd263293d1e0a234 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
/** | |
* Remove Genesis Page Templates | |
* | |
* @param array $page_templates | |
* @return array | |
*/ | |
function nn_remove_genesis_page_templates( $page_templates ) { | |
unset( $page_templates['page_archive.php'] ); | |
unset( $page_templates['page_blog.php'] ); | |
return $page_templates; | |
} | |
add_filter( 'theme_page_templates', 'nn_remove_genesis_page_templates' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment