Stopping user deletion from running on error
After the discussion with @CelsoBessa in the comments section of the question, I came up with this solution function display_admin_notices () { // NOTE: Maybe code should be added here to ensure you are displaying those notices only for certain admin pages if (isset($_GET[‘update’])) { switch ($_GET[‘update’]) { case NOTICE__ERROR: $type=”notice-error”; break; case NOTICE__WARNING: $type=”notice-warning”; … Read more