WC_Product_Download::get_file_extension()
Get file extension.
Description Description
Return Return
(string)
Source Source
File: includes/class-wc-product-download.php
public function get_file_extension() { $parsed_url = wp_parse_url( $this->get_file(), PHP_URL_PATH ); return pathinfo( $parsed_url, PATHINFO_EXTENSION ); }