twentythirteen_wpcom_youtube_video_width

Adjusts content_width value for youtube videos in video post formats.

Description

(int) twentythirteen_wpcom_youtube_video_width( (int) $width ); 

Returns (int)

Filtered YouTube video width.

Parameters (1)

0. $width (int)
YouTube video width.

Usage

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

Defined (1)

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

/inc/wpcom.php  
  1. function twentythirteen_wpcom_youtube_video_width( $width ) { 
  2. if ( has_post_format( 'video' ) ) 
  3. $width = 724; 
  4.  
  5. return $width;