cbc video post embed options

Description

Filter the player embed settings (size, autoplay, controls, aspect ratio, etc.) right before the video is rendered.

Parameters

$settings
(array)(required) The embed/player settings about to be used.

Default:None
$post
(WP_Post)(optional) The current post object.

Default:None
$video
(array)(optional) Video details returned by the YouTube API.

Default:None

Example

add_filter( 'cbc_video_post_embed_options', function( $settings, $post, $video ) {
    $settings['autoplay'] = 0;
    return $settings;
}, 10, 3 );

Start importing in minutes

Bring your YouTube content into WordPress and let it update itself. Includes automatic updates and support.