image_editor_default_mime_type

image_editor_default_mime_type

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('image_editor_default_mime_type') is found 1 times:

  • /wp-includes/class-wp-image-editor.php line 391
    			 * @since 3.5.0
    			 *
    			 * @param string $mime_type Mime type string.
    			 */
    			$mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type );
    			$new_ext   = $this->get_extension( $mime_type );
    		}
    
    		/*
    		 * Ensure both $filename and $new_ext are not empty.
    		 * $this->get_extension() returns false on error which would effectively remove the extension