Filter hook 'wp_save_image_editor_file'
in WP Core File wp-admin/includes/image-edit.php at line 450
Description
Filters whether to skip saving the image file. Returning a non-null value will short-circuit the save method, returning that value instead.
Occurrences
Filename |
Line Number |
wp-admin/includes/image-edit.php |
450 |
Parameters
Type |
Name |
Description |
bool|null |
$override |
Value to return instead of saving. Default null. |
string |
$filename |
Name of the file to be saved. |
WP_Image_Editor |
$image |
The image editor instance. |
string |
$mime_type |
The mime type of the image. |
int |
$post_id |
Attachment post ID. |
PHP Doc
/**
* Filters whether to skip saving the image file.
*
* Returning a non-null value will short-circuit the save method,
* returning that value instead.
*
* @since 3.5.0
*
* @param bool|null $override Value to return instead of saving. Default null.
* @param string $filename Name of the file to be saved.
* @param WP_Image_Editor $image The image editor instance.
* @param string $mime_type The mime type of the image.
* @param int $post_id Attachment post ID.
*/