redux/options/<args_opt_name>/defaults

Filter 'redux/options/{opt_name}/defaults'.

Description

apply_filters( 'redux/options/<args_opt_name>/defaults', (unknown) $this_options_defaults, (unknown) $this_transients_changed_values ); 

Parameters (2)

0. $this_options_defaults (unknown)
The this options defaults.
1. $this_transients_changed_values (unknown)
The this transients changed values.

Usage

To run the hook, copy the example below.
  1. $this_options_defaults = apply_filters( 'redux/options/{$args_opt_name}/defaults', $this_options_defaults, $this_transients_changed_values ); 
  2.  
  3. if ( !empty( $this_options_defaults ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the redux/options/<args_opt_name>/defaults callback 
  2. function filter_redux_options_args_opt_name_defaults( $this_options_defaults, $this_transients_changed_values ) { 
  3. // make filter magic happen here... 
  4. return $this_options_defaults
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "redux/options/{$args_opt_name}/defaults", 'filter_redux_options_args_opt_name_defaults', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "redux/options/{$args_opt_name}/defaults", 'filter_redux_options_args_opt_name_defaults', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/library/admin/redux-framework/framework.php  
  1. $this->options_defaults = apply_filters( "redux/options/{$this->args['opt_name']}/defaults", $this->options_defaults, $this->transients['changed_values'] );