Automattic\WooCommerce\Admin\PluginsInstallLoggers
AsyncPluginsInstallLogger::complete
Record completed_time.
Метод класса: AsyncPluginsInstallLogger{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$AsyncPluginsInstallLogger = new AsyncPluginsInstallLogger(); $AsyncPluginsInstallLogger->complete( $data );
- $data(массив)
- return data from install_plugins().
По умолчанию: array()
Код AsyncPluginsInstallLogger::complete() AsyncPluginsInstallLogger::complete WC 10.3.4
public function complete( $data = array() ) {
$option = $this->get();
$option['complete_time'] = time();
$option['status'] = 'complete';
$this->track( $data );
$this->update( $option );
}