Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_set_theme_mod_{$name} ›

Da3.9.0
Deprecaton/a
apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value )
Parametri: (2)
  • (string) $value The new value of the theme mod.
    Richiesto:
  • (string) $old_value The current value of the theme mod.
    Richiesto:
Definito a:
Codex:

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.





Sorgenti

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