WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer::parse_download_file_field() public WC 1.0

Parse download file urls, we should allow shortcodes here.

Allow shortcodes if present, othersiwe esc_url the value.

{} It's a method of the class: WC_Product_CSV_Importer{}

No Hooks.

Return

String.

Usage

$WC_Product_CSV_Importer = new WC_Product_CSV_Importer();
$WC_Product_CSV_Importer->parse_download_file_field( $value );
$value(string) (required)
Field value.

Code of WC_Product_CSV_Importer::parse_download_file_field() WC 5.6.0

public function parse_download_file_field( $value ) {
	// Absolute file paths.
	if ( 0 === strpos( $value, 'http' ) ) {
		return esc_url_raw( $value );
	}
	// Relative and shortcode paths.
	return wc_clean( $value );
}