wp_ajax_cropped_attachment_metadata WordPress Filter Hook
The wp_ajax_cropped_attachment_metadata WordPress hook is used to crop an attachment image. This hook is triggered when the user clicks on the "Crop Image" button in the image editor.
apply_filters( 'wp_ajax_cropped_attachment_metadata', array $metadata ) #
Filters the cropped image attachment metadata.
Description
See also
Parameters
- $metadata
(array)Attachment metadata.
Source
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |