redux/<args_opt_name>/field/<type>/defaults

The Ultimate Member redux args opt name field type defaults hook.

Description

apply_filters( 'redux/<args_opt_name>/field/<type>/defaults', (unknown) $field_default, (unknown) $field ); 

Parameters (2)

0. $field_default (unknown)
The field default.
1. $field (unknown)
The field.

Usage

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

Defined (1)

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

/admin/core/lib/ReduxFramework/ReduxCore/framework.php  
  1. $this->options_defaults[ $field['id'] ] = apply_filters( "redux/{$this->args['opt_name']}/field/{$field['type']}/defaults", $field['default'], $field );