WC_WCCOM_Site_Installer::reset_state()
Reset product install state.
Метод класса: WC_WCCOM_Site_Installer{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$result = WC_WCCOM_Site_Installer::reset_state( $products );
- $products(массив)
- List of product IDs.
По умолчанию: array()
Список изменений
С версии 3.7.0 | Введена. |
Код WC_WCCOM_Site_Installer::reset_state() WC WCCOM Site Installer::reset state WC 7.3.0
public static function reset_state( $products = array() ) { WC()->queue()->cancel_all( 'woocommerce_wccom_install_products' ); WC_Helper_Options::update( 'product_install', self::$default_state ); }