WC_WCCOM_Site_Installation_Step_Download_Product::run()
Run the step installation process.
Method of the class: WC_WCCOM_Site_Installation_Step_Download_Product{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_WCCOM_Site_Installation_Step_Download_Product = new WC_WCCOM_Site_Installation_Step_Download_Product(); $WC_WCCOM_Site_Installation_Step_Download_Product->run();
WC_WCCOM_Site_Installation_Step_Download_Product::run() WC WCCOM Site Installation Step Download Product::run code WC 9.4.2
public function run() { $upgrader = WC_WCCOM_Site_Installer::get_wp_upgrader(); $download_path = $upgrader->download_package( $this->state->get_download_url() ); if ( empty( $download_path ) ) { throw new Installer_Error( Installer_Error_Codes::MISSING_DOWNLOAD_PATH ); } $this->state->set_download_path( $download_path ); return $this->state; }