I want to call a function, whenever any user update their profile. How to do that?
Leave a Reply
You must be logged in to post a comment.
I want to call a function, whenever any user update their profile. How to do that?
You must be logged in to post a comment.
It seems as if the hook
personal_options_update
might be what you’re looking for.You can do this using either the
personal_options_update
oredit_user_profile_update
hook depending on what exactly you want to do. If those aren’t firing when you need, you can poke around in http://core.trac.wordpress.org/browser/tags/3.5.1/wp-admin/user-edit.php to find a different hook to use.See Justin Tadlock’s tutorial for more