Automattic\WooCommerce\Internal\ProductFeed\Storage

JsonFileFeed::get_file_url │ public │ WC 1.0

{@inheritDoc}

Method of the class: JsonFileFeed{}

No Hooks.

Returns

null. Nothing (null).

Usage

$JsonFileFeed = new JsonFileFeed();
$JsonFileFeed->get_file_url(): ?string;

JsonFileFeed::get_file_url() code WC 11.1.2

public function get_file_url(): ?string {
	if ( ! $this->file_completed ) {
		return null;
	}

	// Resolve the upload directory (also refreshes its .htaccess for file access) and build the URL.
	$upload_dir     = $this->get_upload_dir();
	$this->file_url = $upload_dir['url'] . $this->file_name;

	return $this->file_url;
}