How is wp_admin_notice supposed to work?
If you look at the user-edit.php file, you can see, when updating an user, if there are no errors, then WP performs an redirect. This effectively wipes the admin notice you’re trying to display as it is not stored anywhere. One workaround for this is to store the custom error as a temporary option value … Read more