警告:此钩子已被弃用。请改用image_editor_save_pre。
过滤要映射到浏览器的GD图像资源。
原型
apply_filters( 'image_save_pre', resource $image, int $attachment_id )
参数
$image
(resource)
要流式传输的图像资源。
$attachment_id
(int)
附件帖子ID。
源文件
路径:wp-admin/includes/image-edit.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/image_save_pre/