filtrod 3.6.0
wp_embed_handler_video
Opis — z kodu źródłowego
Filters the video embed output.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$video | string | Video 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_video', '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_video', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii