WC_WCCOM_Site_Installation_Step_Get_Product_Info::get_wporg_download_url()
Get download URL for wporg product.
Метод класса: WC_WCCOM_Site_Installation_Step_Get_Product_Info{}
Хуков нет.
Возвращает
Строку|null
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_wporg_download_url( $data );
- $data(массив) (обязательный)
- Product data.
Код WC_WCCOM_Site_Installation_Step_Get_Product_Info::get_wporg_download_url() WC WCCOM Site Installation Step Get Product Info::get wporg download url WC 9.8.1
protected function get_wporg_download_url( $data ) { if ( empty( $data['_wporg_product'] ) ) { return null; } if ( empty( $data['download_link'] ) ) { throw new Installer_Error( Installer_Error_Codes::WPORG_PRODUCT_MISSING_DOWNLOAD_LINK ); } return $data['download_link']; }