wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_set_theme_mod_{$name} › Hooks de Filtros WordPress

Desde3.9.0
Obsoleton/a
› apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value )
Parâmetros: (2)
  • () value The new value of the theme modification.
    Required: Yes
  • () old_value The current value of the theme modification.
    Required: Yes
Definido em:
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.




Fonte

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