Suggestion on template customization
-
Your plugin is not checking if the active theme is a parent or a child one, so if you have a child theme active, and try to customize the private page template, you will not see any change.
I have checked the path you defined in your code, and I think it could be easier to customize the template if you make a minor change in a new version:
Using the get_stylesheet_directory() function instead of the get_template_directory() function, will make the plugin to look for the new template in the parent or child theme whose stylesheet is in use. Does it make sense?
Thanks for your work!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggestion on template customization’ is closed to new replies.