Skip to content

Instantly share code, notes, and snippets.

@nielslange
Created March 31, 2018 17:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nielslange/dff9e16063a2b2cf8ad7481f866289a5 to your computer and use it in GitHub Desktop.
Save nielslange/dff9e16063a2b2cf8ad7481f866289a5 to your computer and use it in GitHub Desktop.
peepso → peepso_action_user_activate
<?php
add_action('peepso_action_user_activate', 'hook', 10, 1);
/*
* Send an email to admin each time a new group is created
*/
hook(PeepSoUser $PeepSoUser) {
$msg = "New user {$PeepSoUser->get_fullname()} ID {$PeepSoUser->get_id()}";
error_log($msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment