template_include
Like this:
Like Loading...
Appears in:
gutenberg.18.6.1,
gutenberg.18.7.1,
gutenberg.18.9.0,
gutenberg.19.0.0,
gutenberg.19.1.0,
gutenberg.19.2.0,
gutenberg.19.4.0,
gutenberg.19.6.1,
gutenberg.19.6.4,
gutenberg.19.8.0,
gutenberg.19.9.0,
gutenberg.7.3.0,
gutenberg.7.4.0,
gutenberg.7.5.0,
gutenberg.7.6.0,
gutenberg.7.7.0,
gutenberg.7.7.1,
gutenberg.7.8.0,
gutenberg.7.8.1,
gutenberg.7.9.0,
gutenberg.7.9.1,
gutenberg.8.0.0,
siteguard.1.4.3,
siteguard.1.5.0,
siteguard.1.5.1,
siteguard.1.5.2,
siteguard.1.6.0,
siteguard.1.6.1,
siteguard.1.7.1,
siteguard.1.7.2,
siteguard.1.7.3,
siteguard.1.7.5,
siteguard.1.7.6,
siteguard.1.7.7,
siteguard.1.7.8,
wordpress-4.0,
wordpress-4.4,
wordpress-4.8,
wordpress-4.9,
wordpress-4.9.4,
wordpress-4.9.5,
wordpress-4.9.6,
wordpress-4.9.7,
wordpress-4.9.8,
wordpress-5.0,
wordpress-5.0.1,
wordpress-5.0.2,
wordpress-5.0.3,
wordpress-5.1,
wordpress-5.1.1,
wordpress-5.2,
wordpress-5.2.1,
wordpress-5.2.2,
wordpress-5.2.3,
wordpress-5.2.4,
wordpress-5.3,
wordpress-5.3.1,
wordpress-5.3.2,
wordpress-5.4,
wordpress-5.4.1,
wordpress-5.4.2,
wordpress-5.5,
wordpress-5.5.1,
wordpress-5.5.2,
wordpress-5.5.3,
wordpress-5.6,
wordpress-5.6.1,
wordpress-5.6.2,
wordpress-5.7,
wordpress-5.7.1,
wordpress-5.7.2,
wordpress-5.8,
wordpress-5.8.1,
wordpress-5.8.2,
wordpress-5.8.3,
wordpress-5.9,
wordpress-5.9.1,
wordpress-5.9.2,
wordpress-5.9.3,
wordpress-6.0,
wordpress-6.0.1,
wordpress-6.0.2,
wordpress-6.0.3,
wordpress-6.1,
wordpress-6.1.1,
wordpress-6.2,
wordpress-6.2.1,
wordpress-6.2.2,
wordpress-6.3,
wordpress-6.3.1,
wordpress-6.3.2,
wordpress-6.4,
wordpress-6.4.1,
wordpress-6.4.2,
wordpress-6.4.3,
wordpress-6.5,
wordpress-6.5.2,
wordpress-6.5.3,
wordpress-6.5.4,
wordpress-6.5.5,
wordpress-6.6,
wordpress-6.6.1,
wordpress-6.6.2,
wordpress-6.7,
wordpress-6.7.1Hook Type: action
See hook in action
Displaying hooks found in version: wordpress-6.7.1
do_action('template_include') is found 1 times:
- /wp-includes/template-loader.php line 104
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
Like this:
Like Loading...
See this hook used in plugins: