wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



default_option_{$option} › WordPress Filter Hooks

Seit4.7.0
Veraltetn/v
apply_filters( "default_option_{$option}", $default_value, $option, $passed_default )
Parameter: (3)
  • () default_value The default value to return if the option does not exist in the database.
    Erforderlich: Ja
  • () option Option name.
    Erforderlich: Ja
  • () passed_default Was `get_option()` passed a default value?
    Erforderlich: Ja
Definiert in:
Codex:

Filters the default value for an option.

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




Quellcode

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