This filter allows you to adjust the query that is passed on to YouTube in order to embed a video. You can find a complete list of possible values you can use in the YouTube iFrame API documentation.

Available since version 1.2


Param Type Required Description
$args array Yes

An associative array of arguments.

$atts array No

The attributes passed on to the mycred_video shortcode.

$video_id string No

The YouTube video id.

Used By

Package Prio. Description
mycred/core 10 Used by the mycred_video shortcode.


Example 1: Remove the YouTube video controller when embedding videos using the mycred_video shortcode.