WP_Image_Editor::get_extension( string $mime_type = null ): string|false

In this article

Returns first matched extension from Mime-type, as mapped from wp_get_mime_types()

Parameters

$mime_typestringoptional

Default:null

Return

string|false

Source


	return false;
}

/**
 * Returns first matched extension from Mime-type,
 * as mapped from wp_get_mime_types()

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.