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



add_option_{$option} ›

Desde3.0.0
Obsoleton/a
do_action( "add_option_{$option}", $option, $value )
Parâmetros: (2)
  • (string) $option Name of the option to add.
    Required: Yes
  • (mixed) $value Value of the option.
    Required: Yes
Definido em:
Codex:

Fires after a specific option has been added.

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





Fonte

do_action( "add_option_{$option}", $option, $value );