WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
Email notification when a user edits their info? (2 posts)

  1. ElTeniente
    Member
    Posted 2 years ago #

    I'd like to be able to get an email notification when a user edits fields in their profile that were added with WP-Members. Currently, the plugin sends notification for new registrations only. Does anyone know how to make it send one for an edit instead?

    If that can't work, is it possible to hide a specific field on the user profile page. The field would need to be visible during the registration process ONLY and not visible if the user goes to their member page to edit their profile.

    If anyone has any ideas, I would greatly appreciate them. I have to resolve this issue to be able to keep using the WP-MEMBERS plugin (which I love) but if I can't do something here, I may have to dump the plugin. :(

    Thanks

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    The process of new registrations and profile updates are both handled by wpmem_registration found in wp-members-register.php. The only way to accomplish what you are asking for would be to make modifications to that function. That is not recommended as you would need to reapply any changes in the event of an upgrade.

    The notification process is handled by firing wpmem_notify_admin( $user_id, $wpmem_fields ); at the end of a new registration (if the notify admin toggle is on). You could add this to the update process as well, although doing that would not differentiate it as a profile change, but it is the simplest. A little more complicated would to be make something a little more specific, but regardless, that's where it would need to be added.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags