This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Player::get_embed_width()
Return
(mixed|void)
Source
File: includes/libs/player/player.class.php
private function get_embed_width(){ /** * Filter that can be used to modify the width of the embed. * * @param int $width Width in pixels. * @param array $video Array of video details. * @param \WP_Post $post The WP_Post object that the video is attached to. */ $w = apply_filters( 'vimeotheque\player\embed_width', $this->options['width'], $this->post->get_video_data(), $this->post->get_post() ); $max_height = $this->get_max_height(); if( $max_height ){ $h = $this->get_embed_height( $w ); if( $h > $max_height ){ $w = Helper::calculate_player_width( $this->options['aspect_ratio'], $max_height, $this->options['size_ratio']); } } return $w; }