embed_oembed_discover WordPress Filter Hook

This hook is called when an oEmbed provider is discovered. The first parameter is the URL of the content that was discovered. The second parameter is the array of oEmbed provider data.

apply_filters( 'embed_oembed_discover', bool $enable ) #

Filters whether to inspect the given URL for discoverable link tags.


Description

Top ↑

See also


Top ↑

Parameters

$enable

(bool)Whether to enable <link> tag discovery. Default true.


Top ↑

Source

File: wp-includes/class-wp-embed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0The default value changed to true.
2.9.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.