pre_set_theme_mod_(name) хук-фильтр . WP 3.9.0
Filters the theme modification, or 'theme_mod', value on save.
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.
Использование
add_filter( 'pre_set_theme_mod_(name)', 'filter_function_name_3235', 10, 2 ); function filter_function_name_3235( $value, $old_value ){ // filter... return $value; }
- $value(строка)
- The new value of the theme modification.
- $old_value(строка)
- The current value of the theme modification.
Список изменений
С версии 3.9.0 | Введена. |
Где вызывается хук
pre_set_theme_mod_(name)
wp-includes/theme.php 1063
$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );