image_editor_save_pre

过滤钩子


apply_filters( 'image_editor_save_pre', $image, $attachment_id )
参数
  • (WP_Image_Editor)
    $image
    The image editor instance.
    Required:
  • (int)
    $attachment_id
    The attachment post ID.
    Required:
定义位置
  • wp-admin/includes/image-edit.php
    , line 306
引入
3.5.0
弃用

Filters the WP_Image_Editor instance for the image to be streamed to the browser.

$image = apply_filters( 'image_editor_save_pre', $image, $attachment_id );