Automattic\WooCommerce\Admin\PluginsInstallLoggers

AsyncPluginsInstallLogger::complete()publicWC 1.0

Record completed_time.

Method of the class: AsyncPluginsInstallLogger{}

No Hooks.

Return

null. Nothing (null).

Usage

$AsyncPluginsInstallLogger = new AsyncPluginsInstallLogger();
$AsyncPluginsInstallLogger->complete( $data );
$data(array)
return data from install_plugins().
Default: array()

AsyncPluginsInstallLogger::complete() code WC 9.1.2

public function complete( $data = array() ) {
	$option = $this->get();

	$option['complete_time'] = time();
	$option['status']        = 'complete';

	$this->track( $data );
	$this->update( $option );
}