Update profile variable via URL?
-
Hi,
I’m not sure if this is even possible (or if I’m posting in the correct forum section). I have tried a search of the WP forums and Google without success, so I apologise if I’m doubling up.
I’m wanting to be able to update a boolean variable in the user profile of the current user using a URL. E.g. I’d like to be able to update my custom ‘subscribe’ variable (currently listed on the user profile) to ‘no’ using something like:
http://www.mywebsite.com/wp-admin/profile.php?subscribe=no
which will be available as a link from the front-end. As I understand it, this will have to involve PHP ‘get’ and ‘set’ functions, but am unsure about how these need to be implemented. Can anyone please tell me if this is possible and, if so, provide me with some direction on how it can be achieved?
Regards,
J.
The topic ‘Update profile variable via URL?’ is closed to new replies.