WordPress at Your Fingertips
function is not described

WC_Product_Download::get_file_type() public WC 1.0

Get file type.

{} It's a 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();

Code of WC_Product_Download::get_file_type() WC 5.6.0

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