template_directory

template_directory

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('template_directory') is found 1 times:

  • /wp-includes/theme.php line 351
    	 * @param string $template_dir The path of the active theme directory.
    	 * @param string $template     Directory name of the active theme.
    	 * @param string $theme_root   Absolute path to the themes directory.
    	 */
    	return apply_filters( 'template_directory', $template_dir, $template, $theme_root );
    }
    
    /**
     * Retrieves template directory URI for the active theme.
     *
     * @since 1.5.0
    

See this hook used in plugins: