oembed_endpoint_url
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
oembed_endpoint_url
wp-includes/embed.php 465
return apply_filters( 'oembed_endpoint_url', $url, $permalink, $format );