filtrod 2.9.0
oembed_dataparse
Opis — z kodu źródłowego
Filters the returned oEmbed HTML.
Use this filter to add support for custom data types, or to filter the result.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$return | string | false | The returned oEmbed HTML, or false on failure. |
$data | object | A data object result from an oEmbed provider. |
$url | string | The URL of the content to be embedded. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'oembed_dataparse', '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_dataparse', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii