Delete user meta data at user registration
-
Hi,
I’m using a social media plugin for login and registration. This plugin puts data that I don’t want into the user’s meta data.
So my no-working-solution that I have tried is that I run this code by hooking into the “user_register” hook. Trying to delete the data when the plugin registers the user.
delete_user_meta($user_id, "shipping_first_name"); delete_user_meta($user_id, "billing_first_name");
But the user meta data won’t get deleted by doing this.
If I execute the exact same code in another context (for example by clicking a menu button) the code works fine and the user’s meta data will be deleted.
How do I delete these user meta data at registration?
Thanks!
//Rickard
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Delete user meta data at user registration’ is closed to new replies.