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
$value
mixed- The new value of the theme modification.
$old_value
mixed- The current value of the theme modification.
Source
$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.