oembed_remote_get_args filter-hookWP 4.0.0

Filters oEmbed remote get arguments.

Usage

add_filter( 'oembed_remote_get_args', 'wp_kama_oembed_remote_get_args_filter', 10, 2 );

/**
 * Function for `oembed_remote_get_args` filter-hook.
 * 
 * @param array  $args oEmbed remote get arguments.
 * @param string $url  URL to be inspected.
 *
 * @return array
 */
function wp_kama_oembed_remote_get_args_filter( $args, $url ){

	// filter...
	return $args;
}
$args(array)
oEmbed remote get arguments.
$url(string)
URL to be inspected.

Changelog

Since 4.0.0 Introduced.

Where the hook is called

WP_oEmbed::discover()
oembed_remote_get_args
WP_oEmbed::_fetch_with_format()
oembed_remote_get_args
wp-includes/class-wp-oembed.php 445
$args = apply_filters( 'oembed_remote_get_args', $args, $url );
wp-includes/class-wp-oembed.php 566
$args = apply_filters( 'oembed_remote_get_args', array(), $provider_url_with_args );

Where the hook is used in WordPress

Usage not found.