wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_ajax_crop_image_pre_save › WordPress动作钩子

Since4.3.0
已弃用n/a
› do_action( 'wp_ajax_crop_image_pre_save', $context, $attachment_id, $cropped )
参数: (3)
  • () context The Customizer control requesting the cropped image.
    Required: Yes
  • () attachment_id The attachment ID of the original image.
    Required: Yes
  • () cropped Path to the cropped image file.
    Required: Yes
定义在:
文档:

Fires before a cropped image is saved.

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




源码

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