WP HOOKS
akcjaod 4.3.0

wp_ajax_crop_image_pre_save

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

Opis — z kodu źródłowego

Fires before a cropped image is saved.

Allows to add filters to modify the way a cropped image is saved.

Parametry

ParametrTypOpis
$contextstringThe Customizer control requesting the cropped image.
$attachment_idintThe attachment ID of the original image.
$croppedstringPath to the cropped image file.

Wywołanie

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

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

Popularne w tej kategorii