On this page
apply_filters( "pre_set_theme_mod_{$name}", mixed $value, mixed $old_value )
Filters the theme modification, or ‘theme_mod’, value on save.
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
$valuemixed-
The new value of the theme modification.
$old_valuemixed-
The current value of the theme modification.
Source
File: wp-includes/theme.php. View all references
$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );
Related
Used By
| Used By | Description |
|---|---|
| set_theme_mod() wp-includes/theme.php | Updates theme modification value for the active theme. |
Changelog
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_set_theme_mod_name