Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/class-wp-embed.php | apply_filters | 289 | /** * Filters the cached oEmbed HTML. * * @since 2.9.0 * * @see WP_Embed::shortcode() * * @param string|false $cache The cached HTML result, stored in post meta. * @param string $url The attempted embed URL. * @param array $attr An array of shortcode attributes. * @param int $post_ID Post ID. */ |
wp-includes/class-wp-embed.php | apply_filters | 372 | /** * Filters whether to inspect the given URL for discoverable link tags. * * @since 2.9.0 * @since 4.4.0 The default value changed to true. * * @see WP_oEmbed::discover() * * @param bool $enable Whether to enable `` tag discovery. Default true. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string|false | $cache | The cached HTML result, stored in post meta. |
string | $url | The attempted embed URL. |
array | $attr | An array of shortcode attributes. |
int | $post_ID | Post ID. |
string|false | $cache | The cached HTML result, stored in post meta. |
string | $url | The attempted embed URL. |
array | $attr | An array of shortcode attributes. |
int | $post_ID | Post ID. |