WP HOOKS
filtrod 3.9.0

attachment_thumbnail_args

Args 3Plik wp-admin/includes/image.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the parameters for the attachment thumbnail creation.

Parametry

ParametrTypOpis
$image_attachmentarrayAn array of parameters to create the thumbnail.
$metadataarrayCurrent attachment metadata.
$uploadedarray{ 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
}

Popularne w tej kategorii