<self_prefix>/image/height

The Gravity Forms: Post Updates self prefix image height hook.

Description

apply_filters( '<self_prefix>/image/height', $apply_filters ); 

Parameters (1)

0. $apply_filters
The apply filters.

Usage

To run the hook, copy the example below.
  1. $apply_filters = apply_filters( '{$self_prefix}/image/height', $apply_filters ); 
  2.  
  3. if ( !empty( $apply_filters ) ) { 
  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>/image/height callback 
  2. function filter_self_prefix_image_height( $apply_filters ) { 
  3. // make filter magic happen here... 
  4. return $apply_filters
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$self_prefix}/image/height", 'filter_self_prefix_image_height', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$self_prefix}/image/height", 'filter_self_prefix_image_height', 10, 1 ); 

Defined (2)

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

/gravityforms-update-post.php  
  1. $height = apply_filters( self::PREFIX . '/image/height', apply_filters(self::PREFIX . '/file/height', self::$settings['file_height']) ); 
  1. $height = apply_filters(self::PREFIX . '/image/height', $height);