filtrod 2.9.0
oembed_result
Opis — z kodu źródłowego
Filters the HTML returned by the oEmbed provider.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$data | string | false | The returned oEmbed HTML (false if unsafe). |
$url | string | URL of the content to be embedded. |
$args | string | 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_result', '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_result', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii