Automattic\WooCommerce\Internal\ProductFeed\Storage
JsonFileFeed::get_file_url
{@inheritDoc}
Метод класса: JsonFileFeed{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$JsonFileFeed = new JsonFileFeed(); $JsonFileFeed->get_file_url(): ?string;
Код JsonFileFeed::get_file_url() JsonFileFeed::get file url WC 11.2.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 = self::build_file_url( $upload_dir['url'], $this->file_name );
return $this->file_url;
}