WC_Product_Download::get_file_type
Get file type.
Method of the class: WC_Product_Download{}
No Hooks.
Returns
String.
Usage
$WC_Product_Download = new WC_Product_Download(); $WC_Product_Download->get_file_type();
WC_Product_Download::get_file_type() WC Product Download::get file type code WC 10.6.2
public function get_file_type() {
$type = wp_check_filetype( strtok( $this->get_file(), '?' ), $this->get_allowed_mime_types() );
return $type['type'];
}