Last active
March 17, 2023 07:53
-
-
Save KnightAlex/eec9c6407da0d1142b0f317c399f53b0 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
//unset Storefront templates | |
function theme_name_disable_page_template($post_templates, $theme, $post, $post_type) | |
{ | |
unset($post_templates['template-fullwidth.php']); | |
unset($post_templates['template-homepage.php']); | |
return $post_templates; | |
} | |
add_filter('theme_templates', 'theme_name_disable_page_template', 10, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment