On this page
apply_filters( "default_option_{$option}", mixed $default, string $option, bool $passed_default )
Filters the default value for an option.
Description
The dynamic portion of the hook name, $option, refers to the option name.
Parameters
$defaultmixed-
The default value to return if the option does not exist in the database.
$optionstring-
Option name.
$passed_defaultbool-
Was
get_option()passed a default value?
Source
File: wp-includes/option.php. View all references
return apply_filters( "default_option_{$option}", $default, $option, $passed_default );
Related
Used By
| Used By | Description |
|---|---|
| update_option() wp-includes/option.php | Updates the value of an option that was already added. |
| add_option() wp-includes/option.php | Adds a new option. |
| get_option() wp-includes/option.php | Retrieves an option value based on an option name. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/default_option_option