user_profile_update_errors updating the user_meta even if there is error message

I’m trying to add custom validation for the fields in the edit-user.php and able to show the error message using the action user_profile_update_errors but it is also updating the user_meta. I’m trying to achieve that if there’s any kind of error message then do not update user_meta also.

  • This topic was modified 4 hours, 55 minutes ago by dipuchaudhary.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here