Used By
Used By | Description |
---|---|
wp-includes/class-wp-theme.php: WP_Theme::get_page_templates() | Returns the theme’s post templates for a given post type. |
Filters list of page templates for a theme.
The dynamic portion of the hook name, $post_type
, refers to the post type.
Version | Description |
---|---|
4.7.0 | Added the $post_type parameter. |
4.4.0 | Converted to allow complete control over the $page_templates array. |
3.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/theme_post_type_templates