filtrod 4.4.0
oembed_endpoint_url
Opis — z kodu źródłowego
Filters the oEmbed endpoint URL.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$url | string | The URL to the oEmbed endpoint. |
$permalink | string | The permalink used for the <code>url</code> query arg. |
$format | string | The requested response format. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'oembed_endpoint_url', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'oembed_endpoint_url', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii