WC_WCCOM_Site_Installer::finish_installation()
Finish installation by updating the state.
Метод класса: WC_WCCOM_Site_Installer{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$result = WC_WCCOM_Site_Installer::finish_installation();
Список изменений
С версии 3.7.0 | Введена. |
Код WC_WCCOM_Site_Installer::finish_installation() WC WCCOM Site Installer::finish installation WC 7.3.0
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 ); }