wp_image_editor_before_change

过滤钩子


apply_filters( 'wp_image_editor_before_change', $image, $changes )
参数
  • (WP_Image_Editor)
    $image
    WP_Image_Editor instance.
    Required:
  • (array)
    $changes
    Array of change operations.
    Required:
定义位置
  • wp-admin/includes/image-edit.php
    , line 630
引入
3.5.0
弃用

Filters the WP_Image_Editor instance before applying changes to the image.

$image = apply_filters( 'wp_image_editor_before_change', $image, $changes );