apply_filters( ‘wp_embed_handler_youtube’, string $embed, array $attr, string $url, array $rawattr )

Filters the YouTube embed output.

Description

See also

Parameters

$embedstring
YouTube embed output.
$attrarray
An array of embed attributes.
$urlstring
The original URL that was matched by the regex.
$rawattrarray
The original unmodified attributes.

Source

return apply_filters( 'wp_embed_handler_youtube', $embed, $attr, $url, $rawattr );

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.