redux/<args_opt_name>/field/class/<type>

Field class file filter 'redux/{opt_name}/field/class/{field.type}.

Description

apply_filters( 'redux/<args_opt_name>/field/class/<type>', (string) $self_dir_inc_fields_field_type_field_field_type_php, (array) $field ); 

Parameters (2)

0. $self_dir_inc_fields_field_type_field_field_type_php (string) => self::$_dir . "inc/fields/{$field['type']}/field_{$field['type']}.php"
The self dir inc fields field type field field type php.
1. $field (array)
Field config data

Usage

To run the hook, copy the example below.
  1. $self_dir_inc_fields_field_type_field_field_type_php = apply_filters( 'redux/{$args_opt_name}/field/class/{$type}', $self_dir_inc_fields_field_type_field_field_type_php, $field ); 
  2.  
  3. if ( !empty( $self_dir_inc_fields_field_type_field_field_type_php ) ) { 
  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/class/<type> callback 
  2. function filter_redux_args_opt_name_field_class_type( $self_dir_inc_fields_field_type_field_field_type_php, $field ) { 
  3. // make filter magic happen here... 
  4. return $self_dir_inc_fields_field_type_field_field_type_php
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "redux/{$args_opt_name}/field/class/{$type}", 'filter_redux_args_opt_name_field_class_type', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "redux/{$args_opt_name}/field/class/{$type}", 'filter_redux_args_opt_name_field_class_type', 10, 2 ); 

Defined (2)

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

/admin/core/lib/ReduxFramework/ReduxCore/framework.php  
  1. $class_file = apply_filters( "redux/{$this->args['opt_name']}/field/class/{$field['type']}", self::$_dir . "inc/fields/{$field['type']}/field_{$field['type']}.php", $field ); 
  1. $class_file = apply_filters( "redux/{$this->args['opt_name']}/field/class/{$field['type']}", self::$_dir . "inc/fields/{$field['type']}/field_{$field['type']}.php", $field );