Filters whether to skip saving the image file.
Description
Returning a non-null value will short-circuit the save method, returning that value instead.
Parameters
$override
bool|null- Value to return instead of saving. Default null.
$filename
string- Name of the file to be saved.
$image
resource|GdImage- Image resource or GdImage instance.
$mime_type
string- The mime type of the image.
$post_id
int- Attachment post ID.
Source
$saved = apply_filters_deprecated(
'wp_save_image_file',
array( null, $filename, $image, $mime_type, $post_id ),
'3.5.0',
'wp_save_image_editor_file'
);
Changelog
Version | Description |
---|---|
3.5.0 | Use 'wp_save_image_editor_file' instead. |
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.