On this page
apply_filters( "theme_mod_{$name}", mixed $current_mod )
Filters the theme modification, or ‘theme_mod’, value.
Description
The dynamic portion of the hook name, $name, refers to the key name of the modification array. For example, ‘header_textcolor’, ‘header_image’, and so on depending on the theme options.
Parameters
$current_modmixed-
The value of the active theme modification.
Source
File: wp-includes/theme.php. View all references
return apply_filters( "theme_mod_{$name}", $mods[ $name ] );
Related
Used By
| Used By | Description |
|---|---|
| get_theme_mod() wp-includes/theme.php | Retrieves theme modification value for the active theme. |
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/theme_mod_name