Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

[Support request] Email Notifications when Member Profile is Updated

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Email Notifications when Member Profile is Updated

Tagged: admin email notification, emember profile updates, form builder add on, profile hooks

  • This topic has 3 replies, 3 voices, and was last updated 3 years, 3 months ago by admin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 1, 2022 at 7:57 am #84127
    mpninc
    Spectator

    We need an email notification sent to our admins whenever a member updates their profile. We use the form builder and profile extended add-ons. I tried adding the following code to my functions.php (using both eMember_profile_updated and eMember_profile_updated_form_builder) but I cannot get it to work. Nothing seems to happen at all and I don’t see anything in the logs. Am I missing something or is there a different hook that I need to be using? Maybe I just messed up the code or am approaching it the wrong way. Any help or insights would be hugely appreciated. Thank you.

    add_action(‘eMember_profile_updated’, ‘run_my_custom_function’, 10, 2);
    function run_my_custom_function($fields, $custom_fields){
    $member_id = $fields[‘member_id’];
    $username = $fields[‘username’];
    $to = “email@mysite.com”;
    $subject = “Member Profile Updated”;
    $header = “From: ” . “accounts@mysite.com” . “rn”;
    $message = “Member profile updated. Please review user details for ” . $username;
    mail($to,$subject,$message,$header);
    }

    WordPress 5.8.3 | WP eMember 10.3.5 | eMember Form Builder 2.9 | eMember Profile Extended 2.4

    February 1, 2022 at 3:05 pm #84129
    wzp
    Moderator

    I tried adding the following code to my functions.php

    Is the add_action() function in a part of your theme’s functions.php file, that is actually being parsed, when the form is displayed?

    is there a different hook that I need to be using?

    You seem to be doing it right, according to this previous thread:

    eMember – Is it possible to have email to admin after customer update profile?

    • This reply was modified 3 years, 3 months ago by wzp.
    February 4, 2022 at 2:45 pm #84135
    mpninc
    Spectator

    Thank you for your reply but I am not sure what you mean by “Is the add_action() function in a part of your theme’s functions.php file, that is actually being parsed, when the form is displayed?” How do I even know? Is there a certain place in functions.php that the add_action() function needs to be?

    February 5, 2022 at 12:09 am #84138
    admin
    Keymaster

    I can see that you are using the form builder addon. Try the following hook which is triggered by that addon:

    add_action('eMember_profile_updated_form_builder', 'run_my_custom_function', 10, 2);

    Give that a try.

    Side Note: Code customization should really be done by a developer. Please note that code customization related queries are beyond the scope of our standard support. You can use the following option if you want us to create a small custom solution for you:

    Need Custom Work Done?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ