Notify admin when user updates profile
-
Hi –
I work on a small all-volunteer professional association website and none of us, myself included, is a coder (or really, knows much about WordPress – just mucking around and trying to figure stuff out on my own since it’s a pretty small-scale site). Our association members can update their profiles on our site, which are the WordPress user profiles. I want the site administrator to get an email whenever a member updates their profile. (Ideally with what was changed, but even just a notification would be OK). I have tried some of other possible solutions I’ve found online (see long explanation below) but none have worked so far.By way of background, we have extra fields in our profiles. Basically it’s title/company/address/phone. We had these fields displayed in a member list (like a paper member directory but online) via another plugin that worked with the CIMY extra user fields we were using. The member list plugin stopped working a few months ago with a WordPress update, so I’ve installed a new combination of plugins that holds the extra field data and then displays them as a member directory – I had to change both plugins since the CIMY plugin didn’t play nicely with any of the new member list plugins I tried. Under our old setup, when user updated their profile, the administrator would get an automatically generated email notifying of the change, which we need. This must have been built into the CIMY extra user field plugin – I tested that. Now that I’ve got this new plugin combo going, we no longer get an admin email when a user updates a profile. I’ve searched some for a different member list plugins that will pull the CIMY extra user data fields and display them, but can’t find one – or at least not a free one.
I’ve seen several other possible code fixes to this admin email problem, usually involving putting some code in my theme’s functions.php file. (I’m using twenty ten theme).
See here:
https://www.ads-software.com/support/topic/notify-admin-when-user-updates-profile-1?replies=2
https://www.ads-software.com/support/topic/notify-admin-when-user-updates-profile?replies=5
https://wpsnipp.com/index.php/functions-php/send-email-notification-when-profile-updates/
and probably a few more that I’ve found online and tried. But none have worked – perhaps they are too old and not supported? When I put the possible code in the bottom of the theme’s funtions.php file, I get the red squiggly lines and if I save it I get a parse-syntax error that locks me out my site. Luckily it’s a development site I’m toying with, but still.
Unfortunately none of us in the association are coders. After killing my site a couple of times I’m hoping someone has some advice. I feel like this is something that someone who knows what they are doing might be able to solve in about 5 minutes, but for a non-techie like me, I’ve been poking around for days and just failing at all the possible code snippets I’ve found online.
Thanks for any advice. And please let me know if I should be directing this to another forum.
- The topic ‘Notify admin when user updates profile’ is closed to new replies.