filtrod 3.9.0
attachment_thumbnail_args
Opis — z kodu źródłowego
Filters the parameters for the attachment thumbnail creation.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$image_attachment | array | An array of parameters to create the thumbnail. |
$metadata | array | Current attachment metadata. |
$uploaded | array | { Information about the newly-uploaded file. @type string $file Filename of the newly-uploaded file. @type string $url URL of the uploaded file. @type string $type File type. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'attachment_thumbnail_args', '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( 'attachment_thumbnail_args', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii