Passing value to profile_update hook
I feel like this is going to be a simple question for someone here, but I’ve been struggling with it on and off for days.
I’m adding a profile_update action to WordPress through my theme’s functions.php file. I have custom radio buttons set up as part of my site’s registration process through a plugin, Cimy User Extra Fields. If the user has selected one of the radio buttons, I want to perform a certain action on a profile update. When the user has selected the other, I want to perform a different action.
This works well if the user is updating an existing profile. But I want it to work on initial registration as well, and the call to the custom radio buttons don’t return anything at that point. How can I pass a value to the profile_update function in such a way that I can test for it?
- The topic ‘Passing value to profile_update hook’ is closed to new replies.