How can I get the template name in site editor
-
I am developing in the site editor and need to get the name of the current template, but I don’t know if there is such a function to get the name of the template.
$check_post_type = get_post_type($post_id); if ($check_post_type == 'wp_template') { $fileName = ...MY_TEMPLATE_NAME...; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How can I get the template name in site editor’ is closed to new replies.