<self_prefix>/file/name

The Gravity Forms: Post Updates self prefix file name hook.

Description

apply_filters( '<self_prefix>/file/name', (string) $filename ); 

Parameters (1)

0. $filename (string)
The filename.

Usage

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

Defined (2)

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

/gravityforms-update-post.php  
  1. <strong><?php echo esc_html( apply_filters(self::PREFIX . '/file/name', $filename) ); ?></strong> 
  1. <strong><?php echo esc_html( apply_filters(self::PREFIX . '/file/name', $basename) ); ?></strong>