get_page_template_slug Wordpress function


Get the specific template name for a page.



(int) $post_id The page ID to check. Defaults to the current post, when used in the loop.

Return Type:

(string|bool) Page template filename. Returns an empty string when the default page template is in use. Returns false if the post is not a page.

Define At:


Wordpress Reference URL:

0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×