WordPress开发者和主题制作者的搜索引擎



pre_set_theme_mod_{$name} ›

Since3.9.0
已弃用n/a
apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value )
参数: (2)
  • (string) $value The new value of the theme mod.
    Required: Yes
  • (string) $old_value The current value of the theme mod.
    Required: Yes
定义在:
文档:

Filters the 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.





源码

$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );