On this page
apply_filters( 'oembed_request_post_id', int $post_id, string $url )
Filters the determined post ID.
Parameters
$post_idint-
The post ID.
$urlstring-
The requested URL.
Source
File: wp-includes/class-wp-oembed-controller.php. View all references
$post_id = apply_filters( 'oembed_request_post_id', $post_id, $request['url'] );
Related
Used By
| Used By | Description |
|---|---|
| get_oembed_response_data_for_url() wp-includes/embed.php | Retrieves the oEmbed response data for a given URL. |
| WP_oEmbed_Controller::get_item() wp-includes/class-wp-oembed-controller.php | Callback for the embed API endpoint. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_request_post_id