Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_WCCOM_Site_Installer::finish_installation()
Finish installation by updating the state.
Description Description
Source Source
File: includes/wccom-site/class-wc-wccom-site-installer.php
private static function finish_installation() { $state = self::get_state(); if ( empty( $state['steps'] ) ) { return; } foreach ( $state['steps'] as $step ) { if ( ! empty( $step['last_error'] ) ) { $state['status'] = 'has_error'; break; } } if ( 'has_error' !== $state['status'] ) { $state['status'] = 'finished'; } WC_Helper_Options::update( 'product_install', $state ); }
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |