oembed_endpoint_url
Filters the oEmbed endpoint URL.
Использование
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(строка)
- The URL to the oEmbed endpoint.
- $permalink(строка)
- The permalink used for the url query arg.
- $format(строка)
- The requested response format.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
oembed_endpoint_url
wp-includes/embed.php 465
return apply_filters( 'oembed_endpoint_url', $url, $permalink, $format );