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

Filter 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

delete_option, export_date_options, __get_option, get_file_description, load_default_textdomain

Top Google Results

User discussions

wpseek mobile