Commit ccc058ec authored by John James Jacoby's avatar John James Jacoby
Browse files

Universal action for notifying admin.

parent 2bf6f676
Pipeline #994 skipped
......@@ -432,6 +432,9 @@ function wp_join_page_notify_site_admin( $user_email = '', $first_name = '', $la
'role' => $role
) );
// Action before mails go out
do_action( 'wp_join_page_notify_site_admin', $users, $subject, $message );
// Send emails
foreach ( $users as $user ) {
wp_mail( $user->user_email, $subject, $message );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment