cbc embed css class

Description

Filter the array of extra CSS classes added to the video player container, for styling the embed.

Parameters

$classes
(array)(required) Array of CSS class names output on the player container.

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

Default:None

Example

add_filter( 'cbc_embed_css_class', function( $classes, $post ) {
    $classes[] = 'my-custom-player';
    return $classes;
}, 10, 2 );

Start importing in minutes

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