oembed_remote_get_args WordPress Filter Hook
The oembed_remote_get_args hook allows you to modify the arguments that are used when making a remote request to get oEmbed data. This can be useful if you need to set a custom user-agent or if you need to add extra headers to the request.
apply_filters( 'oembed_remote_get_args', array $args , string $url ) #
Filters oEmbed remote get arguments.
Description
See also
Parameters
- $args
(array)oEmbed remote get arguments.
- $url
(string)URL to be inspected.
Source
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |