redux-validateclass-load

Filter 'redux-validateclass-load'.

Description

apply_filters( 'redux-validateclass-load', (string) $self_dir_inc_validation_field_validate_validation_field_validate_php, (string) $validate ); 

Parameters (2)

0. $self_dir_inc_validation_field_validate_validation_field_validate_php (string) => self::$_dir . "inc/validation/{$field['validate']}/validation_{$field['validate']}.php"
The self dir inc validation field validate validation field validate php.
1. $validate (string)
Validation class name

Usage

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

Defined (1)

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

/inc/ReduxFramework/ReduxCore/framework.php  
  1. $class_file = apply_filters( "redux-validateclass-load", self::$_dir . "inc/validation/{$field['validate']}/validation_{$field['validate']}.php", $validate ); // REMOVE LATER