Home » Docs » Hooks » Filters » Class: Conductor_Options » conductor_options_defaults_{$option_name}

Description

This filter is used to change a specific option’s default values in Conductor.

Note: The dynamic portion of the filter is the $option_name parameter passed into Conductor_Options::get_options().

This filter is executed when the Conductor_Options::get_options() function is called and the $option_name parameter is not false (Boolean).

Technical Details

  • Type: Filter
  • Parameters:
    • $defaults (array): Default Conductor option values for the specific option
    • $option_name (Boolean, string): Specific option name (see Conductor_Options::get_options())
  • Return Value: array

Resources

Examples

The following example adds a custom value to a custom Conductor option name.