wp_save_image_editor_file

wp_save_image_editor_file

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('wp_save_image_editor_file') is found 1 times:

  • /wp-admin/includes/image-edit.php line 450
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    * @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.
     */
    $saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id );
     
    if ( null !== $saved ) {
        return $saved;
    }
     
    return $image->save( $filename, $mime_type );