etsis_plugin_deactivate_message

Description

Filters the plugin deactivation message. It fires after a plugin has been successfully deactivated.

Example

Override the default plugin deactivation message.

$app = \Liten\Liten::getInstance();

function plugin_deactivate_message($success, $plugin_name) {
    $app = \Liten\Liten::getInstance();
    $success = $app->flash( 'plugin_success_message', sprintf( _t('The plugin <strong>%s</strong> was <strong>deactivated</strong> successfully.'), $plugin_name ) );
    return $success;
}
$app->hook->add_filter( 'etsis_plugin_deactivate_message', 'plugin_deactivate_message', 10, 2 );

Change Log

Since 6.2.0

Source File

etsis_plugin_deactivate_message hook is located in app/src/functions/hook-function.php.

See Also

etsis_plugin_deactivate_message()