embed_oembed_discover filter-hookWP 2.9.0

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

Usage

add_filter( 'embed_oembed_discover', 'wp_kama_embed_oembed_discover_filter' );

/**
 * Function for `embed_oembed_discover` filter-hook.
 * 
 * @param bool $enable Whether to enable `<link>` tag discovery.
 *
 * @return bool
 */
function wp_kama_embed_oembed_discover_filter( $enable ){

	// filter...
	return $enable;
}
$enable(true|false)
Whether to enable <link> tag discovery.
Default: true

Changelog

Since 2.9.0 Introduced.
Since 4.4.0 The default value changed to true.

Where the hook is called

WP_Embed::shortcode()
embed_oembed_discover
wp-includes/class-wp-embed.php 305
$attr['discover'] = apply_filters( 'embed_oembed_discover', true );

Where the hook is used in WordPress

Usage not found.