Filters whether to skip saving the image file.
Returning a non-null value will short-circuit the save method, returning that value instead.
$overridebool|null
$filenamestring
$imageWP_Image_Editor
$mime_typestring
$post_idint
$saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id );
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_save_image_editor_file