cbc js embed

Description

Choose how the video is embedded: return true to use the plugin’s JavaScript player, or false to output a plain YouTube iframe.

Parameters

$js_embed
(bool)(required) Whether to use the JS player.

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

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

Default:None

Example

// Always output a plain iframe instead of the JS player.
add_filter( 'cbc_js_embed', '__return_false' );

Start importing in minutes

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