PluginsInstallLogger
in
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
activated()
Called when a plugin activated successfully.
public
activated(string $plugin_name) : mixed
Parameters
- $plugin_name : string
-
plugin name.
Return values
mixed —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 —install_requested()
Called when a plugin install requested.
public
install_requested(string $plugin_name) : mixed
Parameters
- $plugin_name : string
-
plugin name.
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.