wpseek.com
A WordPress-centric search engine for devs and theme authors



default_option_{$option} › WordPress Filter Hooks

Since4.7.0
Deprecatedn/a
apply_filters( "default_option_{$option}", $default_value, $option, $passed_default )
Parameters: (3)
  • (mixed) $default_value The default value to return if the option does not exist in the database.
    Required: Yes
  • (string) $option Option name.
    Required: Yes
  • (bool) $passed_default Was `get_option()` passed a default value?
    Required: Yes
Defined at:
Codex:

Filters the default value for an option.

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





Source

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