• I’ve installed WP-members for the first time and now looking for a way to solve a request from the board of the foundation.

    Question: I want to be informed when a member changes their information on their profile.

    Possible solutions: Admin is informed by email of any changes made by the logged in member to their information

    Possible workaround: User profile is read only for logged in member and all changes have to be send by email to the admin.

    For both solutions, I have no clue how to do this. Is this even possible?

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    There are a number of ways to approach that.

    First, the premium extension, Advanced Options, as a setting to enable admin notification of a user profile update.

    There is also a code snippet available to premium support subscribers that is “cut-and-paste” but can also be a starting point for customizing.

    If you wanted to implement your own process, there are action hooks in the plugin, so you could use a combination of the “wpmem_pre_update_data” and “wpmem_post_update_data” actions to compare data before and after an update and then generate/send an email accordingly (which could use wp_mail()).

    As for making them “read-only” – yes, you could do something like that as well. The simplest approach is to uncheck the “display” option for any particular field. This makes it “admin only” and it will not display as part of the registration form or the user profile update form. It will only display to the admin in the backend user profile edit view. The data would still be useable, but it wouldn’t be editable by the user.

Viewing 1 replies (of 1 total)
  • The topic ‘User profile read only or inform admin’ is closed to new replies.