WP HOOKS
filtrod 4.4.0

image_get_intermediate_size

Args 3Plik wp-includes/media.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the output of image_get_intermediate_size()

Parametry

ParametrTypOpis
$dataarrayArray of file relative path, width, and height on success. May also include file absolute path and URL.
$post_idintThe ID of the image attachment.
$sizestring | int[]Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'image_get_intermediate_size', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii