PHP Class Inpsyde\MultilingualPress\Installation\PluginDeactivator

Since: 3.0.0
Afficher le fichier Open project: inpsyde/multilingual-press

Méthodes publiques

Méthode Description
__construct ( string $plugin_base_name, string $plugin_name, array $errors = [] ) Constructor. Sets up the properties.
deactivate_plugin ( ) : void Deactivates the plugin, and renders an according admin notice.

Private Methods

Méthode Description
get_errors_as_string ( ) : string Returns the according string for all error messages to be displayed in the admin notice.
render_admin_notice ( ) : void Renders an admin notice informing about the plugin deactivation, including potential error messages.

Method Details

__construct() public méthode

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( string $plugin_base_name, string $plugin_name, array $errors = [] )
$plugin_base_name string The base name of the plugin.
$plugin_name string The name of the plugin.
$errors array Optional. Error messages. Defaults to empty array.

deactivate_plugin() public méthode

Deactivates the plugin, and renders an according admin notice.
Since: 3.0.0
public deactivate_plugin ( ) : void
Résultat void