Description

For embeds managed by the plugin, filter cvm_embed_width will allow you to control the embed width automatically for all imported videos. Please note that this will not apply for posts imported as your WordPress theme video posts since in this case, the embedding is managed by your theme.

Parameters

$width
(integer)(required) Embed width in pixels.

Default:None
$video_details
(array)(optional) The details of the video (video ID, title, description, etc.) retrieved from Vimeo

Default:None
$embed_type
(strig)(optional) This parameter can have 2 values: manual_embed if video is embedded using template function cvm_video_embed_html() in WordPress theme or automatic_embed if video is embedded automatically by the plugin into the post content.

Default:None

Examples

Make all video embeds managed by the plugin to have 900 pixels in width (ie. you changed your WordPress theme and you determined that is the perfect size for your videos).

function change_embed_width( $width ){
    return 900;
}
add_filter( 'cvm-embed-width', 'change_embed_width' );

Related