wp_save_image_file
wp_save_image_file ( $filename, $image, $mime_type, $post_id )
Parameters:- (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.
Returns:- (bool) True on success, false on failure.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Saves image to file.