wp_ajax_crop_image_pre_save

Advertisement

Summery Summery

Fires before a cropped image is saved.

Syntax Syntax

do_action( 'wp_ajax_crop_image_pre_save', string $context, int $attachment_id, string $cropped )

Description Description

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

Parameters Parameters

$context

(string) The Customizer control requesting the cropped image.

$attachment_id

(int) The attachment ID of the original image.

$cropped

(string) Path to the cropped image file.

Source Source

File: wp-admin/includes/ajax-actions.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.