Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 28, 2014 15:32
Show Gist options
  • Save billerickson/11375570 to your computer and use it in GitHub Desktop.
Save billerickson/11375570 to your computer and use it in GitHub Desktop.
<?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