• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WC_WCCOM_Site_Installer::unpack_product() – Unpack downloaded product.

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 );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th February 2020

Primary Sidebar

Information

Function name: WC_WCCOM_Site_Installer::unpack_product
Class ref: WC_WCCOM_Site_Installer
Plugin ref: WooCommerce
Version: 4.8.0
Sourcefile: includes/wccom-site/class-wc-wccom-site-installer.php
File ref: includes/wccom-site/class-wc-wccom-site-installer.php
Deprecated?: No
API Letters: I,S,U,W

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites