filtrod 2.9.0
oembed_fetch_url
Opis — z kodu źródłowego
Filters the oEmbed URL to be fetched.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$provider | string | URL of the oEmbed provider. |
$url | string | URL of the content to be embedded. |
$args | array | Optional. Additional arguments for retrieving embed HTML. See wp_oembed_get() for accepted arguments. Default empty. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'oembed_fetch_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_fetch_url', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii