Allow wp_remote_get args to be filtered for oEmbed calls
|Reported by:||leewillis77||Owned by:||wonderboymusic|
Currently, the oEmbed code use wp_remote_get() to communicate with the oEmbedded service. However, there's no way to filter the arguments that get used - it simply uses the system wide defaults.
Filtering the defaults (E.g. http_request_timeout) seems overkill when you know that you only want to change things for something specific like an oEmbed call that you know may take longer than 5 seconds (E.g.
The attached patch adds a new filter oembed_remote_get_args which allows plugins to override the wp_remote_get args for oembed calls (Including discovery)
Change History (8)
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to Future Release
comment:4 @DrewAPicture — 11 months ago
- Keywords has-patch added; needs-patch needs-docs removed
- Milestone changed from Future Release to 4.0