oembed_discovery_links
Filter HookDescription
Filters the oEmbed discovery links HTML.Hook Information
File Location |
wp-includes/embed.php
View on GitHub
|
Hook Type | Filter |
Line Number | 354 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$output
|
HTML of the discovery links. |
Usage Examples
Basic Usage
<?php
// Hook into oembed_discovery_links
add_filter('oembed_discovery_links', 'my_custom_filter', 10, 1);
function my_custom_filter($output) {
// Your custom filtering logic here
return $output;
}
Source Code Context
wp-includes/embed.php:354
- How this hook is used in WordPress core
<?php
349 *
350 * @since 4.4.0
351 *
352 * @param string $output HTML of the discovery links.
353 */
354 echo apply_filters( 'oembed_discovery_links', $output );
355 }
356
357 /**
358 * Adds the necessary JavaScript to communicate with the embedded iframes.
359 *
PHP Documentation
<?php
/**
* Filters the oEmbed discovery links HTML.
*
* @since 4.4.0
*
* @param string $output HTML of the discovery links.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/embed.php
Related Hooks
Related hooks will be displayed here in future updates.