cbc vertical player max height

Description

Filter the maximum height of vertical players, like the players of YouTube Shorts, so they are never taller than the screen. It is the maximum height of every player (see cbc_player_max_height) or 80vh when players are not limited in height. Available since Video Hub 2.3.2.

Parameters

$max_height
(string)(required) CSS length, like 80vh or 600px.

Examples

Limit vertical videos to 640 pixels.

add_filter( 'cbc_vertical_player_max_height', function() {
    return '640px';
} );

Start importing in minutes

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