WP HOOKS
filtrod 6.5.0

image_save_progressive

Args 2Plik wp-includes/class-wp-image-editor-gd.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether to output progressive images (if available).

Parametry

ParametrTypOpis
$interlaceboolWhether to use progressive images for output if available. Default false.
$mime_typestringThe mime type being saved.

Wywołanie

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

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

Popularne w tej kategorii