Filters list of page templates for a theme.
Description
The dynamic portion of the hook name, $post_type
, refers to the post type.
Possible hook names include:
theme_post_templates
theme_page_templates
theme_attachment_templates
Parameters
Source
$post_templates = (array) apply_filters( "theme_{$post_type}_templates", $post_templates, $this, $post, $post_type );
User Contributed Notes
You must log in before being able to contribute a note or feedback.