apply_filters( 'wp_ajax_cropped_attachment_id', int $attachment_id, string $context )
Filters the attachment ID for a cropped image.
Parameters
- $attachment_id
-
(int) The attachment ID of the cropped image.
- $context
-
(string) The Customizer control requesting the cropped image.
Source
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_ajax_cropped_attachment_id