itsg_gf_ckeditor_filename

The CKEditor WYSIWYG for Gravity Forms itsg gf ckeditor filename hook.

Description

apply_filters( 'itsg_gf_ckeditor_filename', (string) $name, (unknown) $file_path, (unknown) $size, (unknown) $type, (unknown) $error, (unknown) $index, (unknown) $content_range ); 

Parameters (7)

0. $name (string)
The name.
1. $file_path (unknown)
The file path.
2. $size (unknown)
The size.
3. $type (unknown)
The type.
4. $error (unknown)
The error.
5. $index (unknown)
The index.
6. $content_range (unknown)
The content range.

Usage

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

Defined (1)

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

/gf_wysiwyg_ckeditor_plugin.php  
  1. $name = apply_filters( 'itsg_gf_ckeditor_filename', $name, $file_path, $size, $type, $error, $index, $content_range );