oembed_request_post_id WordPress Filter Hook
The oembed_request_post_id Wordpress hook enables you to set the post ID for an oEmbed request. This is useful for ensuring that the correct post is embedded when using the [embed] shortcode.
apply_filters( 'oembed_request_post_id', int $post_id , string $url ) #
Filters the determined post ID.
Parameters
- $post_id
(int)The post ID.
- $url
(string)The requested URL.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |