wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_save_image_editor_file › WordPress过滤钩子

Since3.5.0
已弃用n/a
› apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id )
参数: (5)
  • () override Value to return instead of saving. Default null.
    Required: Yes
  • () filename Name of the file to be saved.
    Required: Yes
  • () image The image editor instance.
    Required: Yes
  • () mime_type The mime type of the image.
    Required: Yes
  • () post_id Attachment post ID.
    Required: Yes
定义在:
文档:

Filters whether to skip saving the image file.

Returning a non-null value will short-circuit the save method, returning that value instead.




源码

$saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id );