get_page_template_slug
get_page_template_slug ( $post = null )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
Returns:- (string|false) Page template filename. Returns an empty string when the default page template is in use. Returns false if the post does not exist.
Defined at:Change Log: - Introduced in WordPress: 3.4.0
- Deprecated in WordPress: —
Description
Gets the specific template filename for a given post.