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:

Description

Saves image to file.

Related Functions

wp_save_image, wp_get_image_mime, _copy_image_file, wp_calculate_image_sizes, wp_update_image_subsizes

Top Google Results

User discussions

wpseek mobile