WC_Product_Download::get_file_type()
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() WC Product Download::get file type code WC 7.7.0
public function get_file_type() { $type = wp_check_filetype( strtok( $this->get_file(), '?' ), $this->get_allowed_mime_types() ); return $type['type']; }