WordPress at Your Fingertips
function is not described

WC_Product_Download::get_file_extension() public WC 1.0

Get file extension.

{} 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_extension();

Code of WC_Product_Download::get_file_extension() WC 5.7.1

public function get_file_extension() {
	$parsed_url = wp_parse_url( $this->get_file(), PHP_URL_PATH );
	return pathinfo( $parsed_url, PATHINFO_EXTENSION );
}