You appear to be a bot. Output may be restricted
Description
Unpack downloaded product.
Usage
$\WP_Error|string = WC_WCCOM_Site_Installer::unpack_product( $product_id, $upgrader );
Parameters
- $product_id
- ( int ) required – Product ID.
- $upgrader
- ( \WP_Upgrader ) required – Core class to handle installation.
Returns
\WP_Error|string
Source
File name: woocommerce/includes/wccom-site/class-wc-wccom-site-installer.php
Lines:
1 to 8 of 8
private static function unpack_product( $product_id, $upgrader ) { $steps = self::get_state( 'steps' ); if ( empty( $steps[ $product_id ]['download_path'] ) ) { return new WP_Error( 'missing_download_path', __( 'Could not find download path.', 'woocommerce' ) ); } return $upgrader->unpack_package( $steps[ $product_id ]['download_path'], true ); }