theme_templates

theme_templates

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.4.1

apply_filters('theme_templates') is found 1 times:

  • /wp-includes/class-wp-theme.php line 1269
    		 * @param WP_Theme     $this           The theme object.
    		 * @param WP_Post|null $post           The post being edited, provided for context, or null.
    		 * @param string       $post_type      Post type to get the templates for.
    		 */
    		$post_templates = (array) apply_filters( 'theme_templates', $post_templates, $this, $post, $post_type );
    
    		/**
    		 * Filters list of page templates for a theme.
    		 *
    		 * The dynamic portion of the hook name, `$post_type`, refers to the post type.
    		 *