Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Forked from billerickson/functions.php
Last active August 29, 2015 14:20
Show Gist options
  • Save bhubbard/e8ccfe8b9176bf3cf358 to your computer and use it in GitHub Desktop.
Save bhubbard/e8ccfe8b9176bf3cf358 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