image_editor_save_pre
apply_filters( ‘image_editor_save_pre’, WP_Image_Editor $image , int $attachment_id )
过滤器::过滤要流式传输到浏览器的图像的WP_Image_编辑器实例。
Filter Hook: Filters the WP_Image_Editor instance for the image to be streamed to the browser.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$image | (WP_Image_Editor) | 图像编辑器实例。 |
$attachment_id | (int) | 附件帖子ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.5.0 | wp-admin/includes/image-edit.php:277 | 2 | 0 |
image_editor_save_pre 为WP2原创文章,链接:https://www.wp2.cn/hook/image_editor_save_pre/