prso_gform_pluploader_file_base_name

The Gravity Forms Advanced File Uploader prso gform pluploader file base name hook.

Description

apply_filters( 'prso_gform_pluploader_file_base_name', (string) $file_base_name, (unknown) $entry, (unknown) $form ); 

Parameters (3)

0. $file_base_name (string)
The file base name.
1. $entry (unknown)
The entry.
2. $form (unknown)
The form.

Usage

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

Defined (1)

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

/class.core.init-uploader.php  
  1. $file_base_name = apply_filters( 'prso_gform_pluploader_file_base_name', $file_base_name, $entry, $form );