Server IP : 192.158.238.246 / Your IP : 3.138.34.80 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/cwd/plugins/woocommerce/src/Admin/PluginsInstallLoggers/ |
Upload File : |
<?php namespace Automattic\WooCommerce\Admin\PluginsInstallLoggers; /** * A logger used in PluginsHelper::install_plugins to log the installation progress. */ interface PluginsInstallLogger { /** * Called when a plugin install requested. * * @param string $plugin_name plugin name. * @return mixed */ public function install_requested( string $plugin_name ); /** * Called when a plugin installed successfully. * * @param string $plugin_name plugin name. * @param int $duration # of seconds it took to install $plugin_name. * @return mixed */ public function installed( string $plugin_name, int $duration); /** * Called when a plugin activated successfully. * * @param string $plugin_name plugin name. * @return mixed */ public function activated( string $plugin_name ); /** * Called when an error occurred while installing a plugin. * * @param string $plugin_name plugin name. * @param string|null $error_message error message. * @return mixed */ public function add_error( string $plugin_name, string $error_message = null); /** * Called when all plugins are processed. * * @param array $data return data from install_plugins(). * @return mixed */ public function complete( $data = array() ); }