latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Admin notification of profile updates

Home Forums Community Forum Admin notification of profile updates

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 8 months ago.

Topic Author Topic
Posted: Tuesday Apr 24th, 2012 at 4:52 pm #11757

I realize this topic has been covered before, but it’s closed to new replies, and the solution proposed is not working for me… probably due to pilot error, but I could use some help figuring out why…

This is the code I have in my s2hacks.php:

<?php
add_action ("ws_plugin__s2member_during_handle_profile_modifications", "profile_change_notify");
function profile_change_notify ($vars = array ())
    {
        $user = new WP_User ($vars["user_id"]);
        wp_mail ("address@email.com", "Subject ( " . $user->user_login . " just updated their Profile )", "Message Body goes here.");
    }
?>

(but with my real email address). I installed the Email Log plugin, so I can see that no email is being sent when I modify a profile… Can you tell why this isn’t working for me?

Thanks!

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Apr 25th, 2012 at 5:36 am #11814

I don’t know. The hook is still there. http://www.s2member.com/codex/stable/source/s2member/includes/classes/profile-mods-in.inc.php/#src_doc_line_121

Do other emails from your blog go out fine?

Try removing the [hilite mono]$user->user_login[/hilite] part, see if that makes a difference.

[hilite pre_code]

[/hilite]
Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.