gfpdfe_template_location

Legacy Filters.

Description

apply_filters( 'gfpdfe_template_location', (unknown) $template_dir, (unknown) $working_folder, (unknown) $upload_dir ); 

Parameters (3)

0. $template_dir (unknown)
The template dir.
1. $working_folder (unknown)
The working folder.
2. $upload_dir (unknown)
The upload dir.

Usage

To run the hook, copy the example below.
  1. $template_dir = apply_filters( 'gfpdfe_template_location', $template_dir, $working_folder, $upload_dir ); 
  2.  
  3. if ( !empty( $template_dir ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdfe_template_location callback 
  2. function filter_gfpdfe_template_location( $template_dir, $working_folder, $upload_dir ) { 
  3. // make filter magic happen here... 
  4. return $template_dir
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdfe_template_location', 'filter_gfpdfe_template_location', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdfe_template_location', 'filter_gfpdfe_template_location', 10, 3 ); 

Defined (1)

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

/src/model/Model_Install.php  
  1. $this->data->template_location = apply_filters( 'gfpdfe_template_location', $template_dir, $working_folder, $upload_dir );