filtrod 4.0.0
wp_embed_handler_youtube
Opis — z kodu źródłowego
Filters the YouTube embed output.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$embed | string | YouTube embed output. |
$attr | array | An array of embed attributes. |
$url | string | The original URL that was matched by the regex. |
$rawattr | array | The original unmodified attributes. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_embed_handler_youtube', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_embed_handler_youtube', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii