apply_filters( ‘wp_ajax_cropped_attachment_id’, int $attachment_id, string $context )

In this article

Filters the attachment ID for a cropped image.

Parameters

$attachment_idint
The attachment ID of the cropped image.
$contextstring
The Customizer control requesting the cropped image.

Source

$attachment_id = apply_filters( 'wp_ajax_cropped_attachment_id', $attachment_id, $context );

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.