WP HOOKS
filtrod 3.5.0

wp_image_editor_before_change

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

Opis — z kodu źródłowego

Filters the WP_Image_Editor instance before applying changes to the image.

Parametry

ParametrTypOpis
$image\WP_Image_EditorWP_Image_Editor instance.
$changesarrayArray of change operations.

Wywołanie

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

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

Popularne w tej kategorii