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:

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}`.

Related Functions

filter_default_metadata, delete_option, export_date_options, _wp_register_default_font_collections, wp_filter_default_autoload_value_via_option_size

Top Google Results

User discussions

wpseek mobile