WC_Product_Download::get_file_type()publicWC 1.0

Get file type.

Method of the class: WC_Product_Download{}

No Hooks.

Return

String.

Usage

$WC_Product_Download = new WC_Product_Download();
$WC_Product_Download->get_file_type();

WC_Product_Download::get_file_type() code WC 8.7.0

public function get_file_type() {
	$type = wp_check_filetype( strtok( $this->get_file(), '?' ), $this->get_allowed_mime_types() );
	return $type['type'];
}