Last active
August 29, 2015 14:02
-
-
Save joshuadavidnelson/ba0d3a510a581b5fbf0d to your computer and use it in GitHub Desktop.
Remove Parent Theme Page Template
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
<?php | |
/** | |
* Remove Parent Theme Page Template | |
* | |
* @link http://wordpress.stackexchange.com/questions/13671/how-to-remove-a-parent-theme-page-template-from-a-child-theme#141654 | |
**/ | |
add_filter( 'theme_page_templates', 'jdn_remove_page_templates' ); | |
function jdn_remove_page_templates( $templates ) { | |
unset( $templates['templates/page-template.php'] ); | |
return $templates; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment