template WordPress Filter Hook
This hook is used to add custom code to the top of the header.php template file in a WordPress theme. This is useful for adding code that needs to be output before anything else in the header, such as CSS style rules or JavaScript code.
apply_filters( 'template', string $template ) #
Filters the name of the active theme.
Parameters
- $template
(string)active theme's directory name.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |