wp_ajax_cropped_attachment_id WordPress Filter Hook

The wp_ajax_cropped_attachment_id hook is used to crop an attachment image. It is used to crop an image that has already been uploaded to the WordPress media library.

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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More