wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_set_theme_mod_{$name} › Les Filtres WordPress

Depuis3.9.0
Dépréciéen/a
› apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value )
Paramètres: (2)
  • () value The new value of the theme modification.
    Requis: Oui
  • () old_value The current value of the theme modification.
    Requis: Oui
Défini(e) dans:
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.




Source

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