oembed_remote_get_args
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
oembed_remote_get_args
oembed_remote_get_args
wp-includes/class-wp-oembed.php 455
$args = apply_filters( 'oembed_remote_get_args', $args, $url );
wp-includes/class-wp-oembed.php 578
$args = apply_filters( 'oembed_remote_get_args', array(), $provider_url_with_args );