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

Top ↑

See also


Top ↑

Parameters

$args

(array)oEmbed remote get arguments.

$url

(string)URL to be inspected.


Top ↑

Source

File: wp-includes/class-wp-oembed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.