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

Top ↑

See also


Top ↑

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.


Top ↑

Source

File: wp-includes/embed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.