filter_default_option
filter_default_option ( $default_value, $option, $passed_default )
Parameters:- (mixed) default_value Existing default value to return.
- (string) option Option name.
- (bool) passed_default Was `get_option()` passed a default value?
Returns:- (mixed) Filtered default value.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Filters the default value for the option.For settings which register a default setting in `register_setting()`, this
function is added as a filter to `default_option_{$option}`.