template_include

template_include

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.9.4

do_action('template_include') is found 1 times:

  • /wp-includes/template-loader.php line 114
    	 * @since 3.0.0
    	 *
    	 * @param string $template The path of the template to include.
    	 */
    	$template   = apply_filters( 'template_include', $template );
    	$is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
    	$template   = $is_stringy ? realpath( (string) $template ) : null;
    	if (
    		is_string( $template ) &&
    		( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
    		is_file( $template ) &&
    

See this hook used in plugins: