wp_save_image_file

wp_save_image_file

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('wp_save_image_file') is found 1 times:

  • /wp-admin/includes/image-edit.php line 373
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    * @param WP_Image_Editor $image     WP_Image_Editor instance.
     * @param string          $mime_type Image mime type.
     * @param int             $post_id   Post ID.
     */
    $saved = apply_filters( 'wp_save_image_file', null, $filename, $image, $mime_type, $post_id );
     
    if ( null !== $saved ) {
        return $saved;
    }
     
    switch ( $mime_type ) {