I want to have a notification sent when a user (not the user whose record is being edited) edits a user's metadata using a Toolset edit user form.
I'd like a notification which goes to the user who has been edited containing some of the usermeta fields for them and a notification to a specified email address stating the data and the user first and last name of the user who edited the record.
Something like these two:
----------------------------------------------------
To the user whose record was edited (not the user who edited the record)...
Dear [wpv-user field="user_firstname"]
You have been issued on [types usermeta='access-issued' style='text' format='F j, Y' ][/types] with a key, fob (number [wpv-user field="wpcf-access-fob-number" ])
----------------------------------------------------
To the specific email address (the premises manager)....
Key and fob (number [wpv-user field="wpcf-access-fob-number"] were issued to [wpv-user field="user_firstname" ] [wpv-user field="user_lastname" ] on [types usermeta='access-issued' style='text' format='F j, Y' ][/types].
This record was updated by %%USER_FIRST_NAME%% %%USER_LAST_NAME%%
-------------------------------------------------------
I have a feeling that I am mixing up user fields which relate to the user who edited the record and the user whose record was edited. I can't understand when "placeholders" are used and when user fields are used.
This record was updated by %%USER_FIRST_NAME%% %%USER_LAST_NAME%%
==>
the above placeholder should also display the loggedin user firstname and last name.