filtrod 2.9.0
embed_defaults
Opis — z kodu źródłowego
Filters the default array of embed dimensions.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$size | int[] | { Indexed array of the embed width and height in pixels. @type int $0 The embed width. @type int $1 The embed height. } |
$url | string | The URL that should be embedded. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'embed_defaults', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'embed_defaults', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii