WordPress at a glance
filter is not described

oembed_request_post_id filter-hook . WP 4.4.0

Filters the determined post ID.

Usage

add_filter( 'oembed_request_post_id', 'filter_function_name_9418', 10, 2 );
function filter_function_name_9418( $post_id, $url ){
	// filter...

	return $post_id;
}
$post_id(int)
The post ID.
$url(string)
The requested URL.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

WP_oEmbed_Controller::get_item()
oembed_request_post_id
get_oembed_response_data_for_url()
oembed_request_post_id
wp-includes/class-wp-oembed-controller.php 126
$post_id = apply_filters( 'oembed_request_post_id', $post_id, $request['url'] );
wp-includes/embed.php 616
$post_id = apply_filters( 'oembed_request_post_id', $post_id, $url );

Where the hook is used (in WP core)

Usage not found!