WooCommerce Code Reference

PluginsInstallLogger

A logger used in PluginsHelper::install_plugins to log the installation progress.

Table of Contents

activated()  : mixed
Called when a plugin activated successfully.
add_error()  : mixed
Called when an error occurred while installing a plugin.
complete()  : mixed
Called when all plugins are processed.
install_requested()  : mixed
Called when a plugin install requested.
installed()  : mixed
Called when a plugin installed successfully.

Methods

add_error()

Called when an error occurred while installing a plugin.

public add_error(string $plugin_name[, string|null $error_message = null ]) : mixed
Parameters
$plugin_name : string

plugin name.

$error_message : string|null = null

error message.

Return values
mixed

complete()

Called when all plugins are processed.

public complete([array<string|int, mixed> $data = array() ]) : mixed
Parameters
$data : array<string|int, mixed> = array()

return data from install_plugins().

Return values
mixed

installed()

Called when a plugin installed successfully.

public installed(string $plugin_name, int $duration) : mixed
Parameters
$plugin_name : string

plugin name.

$duration : int

of seconds it took to install $plugin_name.

Return values
mixed