wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_save_image_editor_file › WordPress Filter Hooks

Since3.5.0
Deprecatedn/a
apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id )
Parameters: (5)
  • (bool|null) $override Value to return instead of saving. Default null.
    Required: Yes
  • (string) $filename Name of the file to be saved.
    Required: Yes
  • (WP_Image_Editor) $image The image editor instance.
    Required: Yes
  • (string) $mime_type The mime type of the image.
    Required: Yes
  • (int) $post_id Attachment post ID.
    Required: Yes
Defined at:
Codex:

Filters whether to skip saving the image file.

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





Source

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