vimeo_height

Filter the Vimeo player height.

Description

apply_filters( 'vimeo_height', (int) $height ); 

Parameters (1)

0. $height (int)
Height of the Vimeo player in pixels.

Usage

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

Defined (1)

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

/modules/shortcodes/vimeo.php  
  1. $height = (int) apply_filters( 'vimeo_height', $height );