过滤WP_Image_Editor实例,以便将图像流式传输到浏览器。
原型
apply_filters( 'image_editor_save_pre', WP_Image_Editor $image, int $attachment_id )
参数
$image
(WP_Image_Editor)
图像编辑器实例。
$attachment_id
(int)
附件帖子ID。
源文件
路径:wp-admin/includes/image-edit.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/image_editor_save_pre/