wpythub is video visible

Description

Filter whether the video player is embedded on the current page. By default the player is shown on single video pages, and on archive pages when Show the video player in lists of posts is checked (Settings, tab Post options). Available since Video Hub 2.0.

Parameters

$is_visible
(bool)(required) Whether the video is embedded.

Examples

Never embed the player on search results pages.

add_filter( 'wpythub_is_video_visible', function( $is_visible ) {
    return is_search() ? false : $is_visible;
} );

Start importing in minutes

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