filtrod 4.4.0
embed_thumbnail_image_size
Opis — z kodu źródłowego
Filters the thumbnail image size for use in the embed template.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$image_size | string | Thumbnail image size. |
$thumbnail_id | int | Attachment ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'embed_thumbnail_image_size', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'embed_thumbnail_image_size', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii