get_page_template_slug Wordpress function


Description:

Get the specific template name for a page.


Syntax:


Arguments:

(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:

wp-includes/post-template.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_page_template_slug


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