Plugin filters / cbc embed allowed

Description

When video embedding is done by the plugin, this filter gives you the choice to prevent videos from being embedded automatically.

Parameters

$allow
(boolean)(required) Allow automatic embedding (true) or deny it (false).

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

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

Default:None

Examples

Deny all embedding.

add_filter( 'cbc_embed_allowed', '__return_false' );