Changeset 47182 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 02/05/2020 03:12:14 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r47122 r47182 1731 1731 * 1732 1732 * This template tag allows you to determine if you are in a page template. 1733 * You can optionally provide a template name or array of templatenames1733 * You can optionally provide a template filename or array of template filenames 1734 1734 * and then the check will be specific to that template. 1735 1735 * … … 1742 1742 * @since 4.7.0 Now works with any post type, not just pages. 1743 1743 * 1744 * @param string|array $template The specific template name or array of templates to match.1744 * @param string|array $template The specific template filename or array of templates to match. 1745 1745 * @return bool True on success, false on failure. 1746 1746 */ … … 1772 1772 1773 1773 /** 1774 * Get the specific template name for a given post.1774 * Get the specific template filename for a given post. 1775 1775 * 1776 1776 * @since 3.4.0 … … 1779 1779 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. 1780 1780 * @return string|false Page template filename. Returns an empty string when the default page template 1781 * is in use. Returns false if the post does not exist.1781 * is in use. Returns false if the post does not exist. 1782 1782 */ 1783 1783 function get_page_template_slug( $post = null ) {
Note: See TracChangeset
for help on using the changeset viewer.