How to move or hide success message after plugin installed?


I have a WP plugin that installs and activates other plugins using Plugin_Updater(). It works fine, but afterwards the success messages echo at the top of the admin page and hide behind the left admin menu sidebar. Is there a way I can move these messages to where they are not blocked or just prevent them from showing up so I can display my own message on refresh?

enter image description here

This is from the chrome dev tools:

<div class="wrap"><h1></h1><p>Downloading installation package from <span class="code"></span>…</p>
<p>Unpacking the package…</p>
<p>Installing the plugin…</p>
<p>Plugin installed successfully.</p>

Hiding the .wrap class also hides all of the content on the page since it’s also using the same class.

Mr Gandy 8 months 2020-11-23T17:10:19-05:00 0 Answers 18 views 0

Leave an answer