wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



default_option_{$option} › WordPress Filter Hooks

Da4.7.0
Deprecaton/a
apply_filters( "default_option_{$option}", $default_value, $option, $passed_default )
Parametri: (3)
  • (mixed) $default_value The default value to return if the option does not exist in the database.
    Richiesto:
  • (string) $option Option name.
    Richiesto:
  • (bool) $passed_default Was `get_option()` passed a default value?
    Richiesto:
Definito a:
Codex:

Filters the default value for an option.

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





Sorgenti

return apply_filters( "default_option_{$option}", $default_value, $option, $passed_default );