redux/extension/<args_opt_name>/<folder>

Filter 'redux/extension/{opt_name}/{folder}'.

Description

apply_filters( 'redux/extension/<args_opt_name>/<folder>', (string) $path_folder_extension_folder_php, (string) $class_file ); 

Parameters (2)

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

Usage

To run the hook, copy the example below.
  1. $path_folder_extension_folder_php = apply_filters( 'redux/extension/{$args_opt_name}/{$folder}', $path_folder_extension_folder_php, $class_file ); 
  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/extension/<args_opt_name>/<folder> callback 
  2. function filter_redux_extension_args_opt_name_folder( $path_folder_extension_folder_php, $class_file ) { 
  3. // make filter magic happen here... 
  4. return $path_folder_extension_folder_php
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "redux/extension/{$args_opt_name}/{$folder}", 'filter_redux_extension_args_opt_name_folder', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "redux/extension/{$args_opt_name}/{$folder}", 'filter_redux_extension_args_opt_name_folder', 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/extension/{$this->args['opt_name']}/$folder", "$path/$folder/extension_{$folder}.php", $class_file );