Created
April 28, 2014 15:32
-
-
Save billerickson/11375570 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Remove Genesis Page Templates | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/remove-genesis-page-templates | |
* | |
* @param array $page_templates | |
* @return array | |
*/ | |
function be_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', 'be_remove_genesis_page_templates' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment