WC_Product_Download::get_file_type()
Get file type.
Метод класса: WC_Product_Download{}
Хуков нет.
Возвращает
Строку
.
Использование
$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 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']; }