filter_default_option


filter_default_option ( $default, $option, $passed_default )

Parameters:
  • (mixed) default 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, term_description, load_default_textdomain

Top Google Results

User discussions

wpseek mobile