cbc embed html container

Description

Filter the full HTML of the video container, allowing third-party code to modify the markup of the embedded player.

Parameters

$video_container
(string)(required) The video container HTML.

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

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

Default:None
$settings
(array)(optional) The player/embed options.

Default:None

Example

add_filter( 'cbc_embed_html_container', function( $html, $post, $video, $settings ) {
    return '<div class="wrap">' . $html . '</div>';
}, 10, 4 );

Start importing in minutes

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