W3cubDocs

/WordPress

apply_filters( ‘template’, string $template )

Filters the name of the active theme.

Parameters

$templatestring
active theme’s directory name.

Source

return apply_filters( 'template', get_option( 'template' ) );

Changelog

Version Description
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/template