filtrod 2.9.0
embed_handler_html
Opis — z kodu źródłowego
Filters the returned embed HTML.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$return | string | The HTML result of the shortcode. |
$url | string | The embed URL. |
$attr | array | An array of shortcode attributes. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'embed_handler_html', '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( 'embed_handler_html', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii