WC_Product_Download::get_file_extension()

Get file extension.


Description Description


Return Return

(string)


Top ↑

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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.