oembed_endpoint_url filter-hookWP 4.4.0

Filters the oEmbed endpoint URL.

Usage

add_filter( 'oembed_endpoint_url', 'wp_kama_oembed_endpoint_url_filter', 10, 3 );

/**
 * Function for `oembed_endpoint_url` filter-hook.
 * 
 * @param string $url       The URL to the oEmbed endpoint.
 * @param string $permalink The permalink used for the `url` query arg.
 * @param string $format    The requested response format.
 *
 * @return string
 */
function wp_kama_oembed_endpoint_url_filter( $url, $permalink, $format ){

	// filter...
	return $url;
}
$url(string)
The URL to the oEmbed endpoint.
$permalink(string)
The permalink used for the url query arg.
$format(string)
The requested response format.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

get_oembed_endpoint_url()
oembed_endpoint_url
wp-includes/embed.php 465
return apply_filters( 'oembed_endpoint_url', $url, $permalink, $format );

Where the hook is used in WordPress

Usage not found.