wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_ajax_crop_image_pre_save › WordPress Action Hooks

Since4.3.0
Deprecatedn/a
do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped )
Parameters: (3)
  • (string) $context The Customizer control requesting the cropped image.
    Required: Yes
  • (int) $attachment_id The attachment ID of the original image.
    Required: Yes
  • (string) $cropped Path to the cropped image file.
    Required: Yes
Defined at:
Codex:

Fires before a cropped image is saved.

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





Source

do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped );