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



pre_update_option_{$option} ›

Desde4.4.0
Obsoleton/a
apply_filters( "pre_update_option_{$option}", $value, $old_value, $option )
Parâmetros: (3)
  • (mixed) $value The new, unserialized option value.
    Required: Yes
  • (mixed) $old_value The old option value.
    Required: Yes
  • (string) $option Option name.
    Required: Yes
Definido em:
Codex:

Filters a specific option before its value is (maybe) serialized and updated.

The dynamic portion of the hook name, $option, refers to the option name.





Fonte

$value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option );