sundoggie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Notify admin when user updates profileThank you SO much for all the help you provided, both in this forum and working with me directly. You’ve been very patient and generous and resolved my issue perfectly.
Thanks!
Forum: Fixing WordPress
In reply to: Notify admin when user updates profileHi Josh –
Here’s the link to the code in Pastebin from my child theme functions.php file: https://pastebin.com/Lm9SUwdBIf I get your plugin, that means that I don’t need this function anymore, right? So I would just delete it?
Thank you again. I feel like Dorothy stumbling into Oz and luckily I found the Good Witch!
ps: I hope you sleep at some point.
Forum: Fixing WordPress
In reply to: Notify admin when user updates profileWow – you have been busy! I am in your eternal debt. First off – I did the child theme. Thank you, makes perfect sense and definitely get the importance of doing that. So, I set that up. And wow, can’t believe you wrote all that code. Thank you. Thank you. Thank you. I pasted it in the child theme’s functions.php file and tested it out on my site. The email generated is much prettier, so yes, that is totally working. The email I get has fields for showing me old and new value for all profile fields, even the extra user detail fields I added, so score – that is working too.
Since you seem interested in this and are working more on it, I’ll let you know that the email shows the data for all fields filled in, whether they were changed or not. Which is totally fine for my purposes, but it doesn’t show the old value for any of the fields, whether they were changed or not. I don’t really care about that unless the field was actually changed, then it would be handy of course to see what was old and what it was changed to so I know what part the user updated. Here’s the email that is generated: (btw, the “eud” is extra user details, which is the plugin I used for the extra fields.)
Hello WordPressAdmin,
The user, Sample User, has updated their profile with the following information:url:
Old Value:
New Value: njlla.orgeudtitle:
Old Value:
New Value: Sample Title – personal editeudcompany_name:
Old Value:
New Value: Sample company – testing live with child themeeudtelephone:
Old Value:
New Value: 973-xxx-xxxxeudaddress_line1:
Old Value:
New Value: changed sample addresseudaddress_line2:
Old Value:
New Value: Sample addresseudcity:
Old Value:
New Value: Sample city – personal editeudstate:
Old Value:
New Value: changed sample stateeudzip_code:
Ol d Value:
New Value: Sample ZIP—
I really don’t want to take advantage of your help any more but since you seem to be running with it, wanted to let you know the results in action. You are really helped me out above and beyond. Thank you – this is awesome.Forum: Fixing WordPress
In reply to: Notify admin when user updates profileI was editing the code right in the WP admin panel – going to theme > edit > function.php. Maybe that’s not the right way to do it? As I said, I’m new to all this. I just dropped your code in the bottom of the file and it did give me the squigglies (is that a technical term?) But I saved it anyway and it worked. The resulting email when I tested the function wasn’t pretty but at least it notified me. You are my favorite person of the week right now. If you have improvements to the code that tells me what got updated I may just have to mail you some cookies.
Forum: Fixing WordPress
In reply to: Notify admin when user updates profileThank you! I guess the red squiggly lines don’t always mean it will kill your site when you hit save. I appreciate the help. I’ll see if I can figure out how to include the changes the user makes to the profile, but for now, this works. Thank you!!