Title: oembed_request_post_id
Published: December 9, 2015
Last modified: April 28, 2025

---

# apply_filters( ‘oembed_request_post_id’, int $post_id, string $url )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#wp--skip-link--target)

Filters the determined post ID.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#parameters)󠁿

 `$post_id`int

The post ID.

`$url`string

The requested URL.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#source)󠁿

    ```php
    $post_id = apply_filters( 'oembed_request_post_id', $post_id, $request['url'] );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-oembed-controller.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-oembed-controller.php#L130)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-oembed-controller.php#L130-L130)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#related)󠁿

| Used by | Description | 
| [get_oembed_response_data_for_url()](https://developer.wordpress.org/reference/functions/get_oembed_response_data_for_url/)`wp-includes/embed.php` |

Retrieves the oEmbed response data for a given URL.

  | 
| [WP_oEmbed_Controller::get_item()](https://developer.wordpress.org/reference/classes/wp_oembed_controller/get_item/)`wp-includes/class-wp-oembed-controller.php` |

Callback for the embed API endpoint.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/oembed_request_post_id/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Foembed_request_post_id%2F)
before being able to contribute a note or feedback.