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



update_option_{$option} ›

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

Fires after the value of a specific option has been successfully updated.

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





Fonte

do_action( "update_option_{$option}", $old_value, $value, $option );