WC_WCCOM_Site_Installation_Step_Unpack_Product::run
Run the step installation process.
Method of the class: WC_WCCOM_Site_Installation_Step_Unpack_Product{}
No Hooks.
Returns
WC_WCCOM_Site_Installation_State.
Usage
$WC_WCCOM_Site_Installation_Step_Unpack_Product = new WC_WCCOM_Site_Installation_Step_Unpack_Product(); $WC_WCCOM_Site_Installation_Step_Unpack_Product->run();
WC_WCCOM_Site_Installation_Step_Unpack_Product::run() WC WCCOM Site Installation Step Unpack Product::run code WC 10.5.0
public function run() {
$upgrader = WC_WCCOM_Site_Installer::get_wp_upgrader();
$unpacked_path = $upgrader->unpack_package( $this->state->get_download_path(), true );
if ( empty( $unpacked_path ) ) {
throw new Installer_Error( Installer_Error_Codes::MISSING_UNPACKED_PATH );
}
$this->state->set_unpacked_path( $unpacked_path );
return $this->state;
}