Filters/Actions for Video Widget

Filters/Actions for Video Widget

Filters available for Video are listed below.

HELPS MODIFY the offset value.

add_filter( 'uael_sticky_video_viewport', function( $viewport ) {   //Modify the offset here    return $viewport;}, 10, 2 );

Note: $viewport –  The offset value to stick the video.

HELPS MODIFY THE VIDEO URL.

add_filter( 'uael_video_url_filter', function( $url, $id ) {   //Modify the url here    return $url;}, 10, 2 );

Note: $url –  Parameter to be modified in the video URL.

HELPS set a default channel id

add_filter( 'uael_video_default_channel_id', function( $channel_id, $settings ) {
  //Set the channel ID here
    return $channel_id;
}, 10, 2 );

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注