wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_set_theme_mod_{$name} › WordPress Filter Hooks

Seit3.9.0
Veraltetn/v
apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value )
Parameter: (2)
  • () value The new value of the theme modification.
    Erforderlich: Ja
  • () old_value The current value of the theme modification.
    Erforderlich: Ja
Definiert in:
Codex:

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.




Quellcode

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