wp_embed_handler_youtube WordPress Filter Hook
The wp_embed_handler_youtube hook allows you to override the default WordPress embed handler for YouTube videos. This can be useful if you want to change how YouTube videos are embedded on your site.
apply_filters( 'wp_embed_handler_youtube', string $embed , array $attr , string $url , array $rawattr ) #
Filters the YoutTube embed output.
Description
See also
Parameters
- $embed
(string)YouTube embed output.
- $attr
(array)An array of embed attributes.
- $url
(string)The original URL that was matched by the regex.
- $rawattr
(array)The original unmodified attributes.
Source
File: wp-includes/embed.php
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |