WC_WCCOM_Site_Installation_Step_Get_Product_Info::get_wporg_download_url()
Get download URL for wporg product.
Method of the class: WC_WCCOM_Site_Installation_Step_Get_Product_Info{}
No Hooks.
Return
String|null
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_wporg_download_url( $data );
- $data(array) (required)
- 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 code WC 9.4.2
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']; }