Automattic\WooCommerce\Admin\PluginsInstallLoggers
AsyncPluginsInstallLogger::complete
Record completed_time.
Method of the class: AsyncPluginsInstallLogger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AsyncPluginsInstallLogger = new AsyncPluginsInstallLogger(); $AsyncPluginsInstallLogger->complete( $data );
- $data(array)
- return data from install_plugins().
Default:array()
AsyncPluginsInstallLogger::complete() AsyncPluginsInstallLogger::complete code WC 10.6.2
public function complete( $data = array() ) {
$option = $this->get();
$option['complete_time'] = time();
$option['status'] = 'complete';
$this->track( $data );
$this->update( $option );
}