twentythirteen_wpcom_youtube_video_height

Adjusts the height value for youtube videos in video post formats.

Description

(int) twentythirteen_wpcom_youtube_video_height( (int) $height ); 

Returns (int)

Filtered YouTube video height.

Parameters (1)

0. $height (int)
YouTube video height.

Usage

  1. if ( !function_exists( 'twentythirteen_wpcom_youtube_video_height' ) ) { 
  2. require_once '/inc/wpcom.php'; 
  3.  
  4. // YouTube video height. 
  5. $height = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twentythirteen_wpcom_youtube_video_height($height); 
  9.  

Defined (1)

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

/inc/wpcom.php  
  1. function twentythirteen_wpcom_youtube_video_height( $height ) { 
  2. if ( has_post_format( 'video' ) ) 
  3. $height = 437; // Educated guess: 16:9. 
  4.  
  5. return $height;