public_html/wp-content/plugins/google-document-embedder/functions-admin.php
/**
 * Add upload support for natively unsupported mimetypes used by this plugin
 *
 * @since   2.4.0.1
 * @return  array Updated array of allowed upload types
 */
Add upload support for natively unsupported mimetypes used by this plugin
@since   2.4.0.1
@return  array Updated array of allowed upload types
Add upload support for natively unsupported mimetypes used by this plugin @since 2 . 4 . 0 . 1 @return array Updated array of allowed upload types
function gde_upload_mimes( $existing_mimes = array() ) {
	$supported_exts = gde_supported_types();
	foreach ( $supported_exts as $ext => $mimetype ) {
		if ( ! array_key_exists( $ext, gde_mimes_expanded( $existing_mimes ) ) ) {
			$existing_mimes[$ext] = $mimetype;
		}
	}
	return gde_mimes_collapsed( $existing_mimes );
}
function gde_upload_mimes ( $ existing_mimes = array ( ) ) { $ supported_exts = gde_supported_types ( ) ; foreach ( $ supported_exts as $ ext => $ mimetype ) { if ( ! array_key_exists ( $ ext , gde_mimes_expanded ( $ existing_mimes ) ) ) { $ existing_mimes [ $ ext ] = $ mimetype ; } } return gde_mimes_collapsed ( $ existing_mimes ) ; }
Add upload support for natively unsupported mimetypes used by this plugin
 @since   2.4.0.1
 @return  array Updated array of allowed upload types
Add upload support for natively unsupported mimetypes used by this plugin @since 2 . 4 . 0 . 1 @return array Updated array of allowed upload types