get_body_class()Retrieves an array of the class names for the body element.
get_page_template()Retrieves path of page template in current or parent template.
get_single_template()Retrieves path of single template in current or parent template. Applies to single Posts, single Attachments, and single custom post types.
is_page_template()Determines whether the current post uses a page template.
Signature, return type and hooks compared across 5 parsed releases.
7.0.4
Parameter $post retyped from int|WP_Post to int|WP_Post|null.verified against source
4.7.0
Now works with any post type, not just pages.from the docblock
3.4.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.7.7 tag, from src/wp-includes/post-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.