redux-extensionclass-load

Filter 'redux-extensionclass-load'.

Description

apply_filters( 'redux-extensionclass-load', (string) $path_folder_extension_folder_php, (string) $extension_class ); 

Parameters (2)

0. $path_folder_extension_folder_php (string) => "$path/$folder/extension_{$folder}.php"
The path folder extension folder php.
1. $extension_class (string)
The extension class.

Usage

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

Defined (1)

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

/library/admin/redux-framework/framework.php  
  1. $class_file = apply_filters( "redux-extensionclass-load", "$path/$folder/extension_{$folder}.php", $extension_class ); // REMOVE LATER