Hey also, I found the file that sends the admin email in: wordpress-social-login/includes/services/wsl.mail.notification.php.
The code is:
<?php
/*!
* WordPress Social Login
*
* https://hybridauth.sourceforge.net/wsl/index.html | https://github.com/hybridauth/WordPress-Social-Login
* (c) 2011-2013 Mohamed Mrassi and contributors | https://www.ads-software.com/extend/plugins/wordpress-social-login/
*/
/**
* Email notifications to send. so far only the admin one is implemented
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
// --------------------------------------------------------------------
/**
* send a notification to blog administrator when a new user register using WSL
* again borrowed from https://www.ads-software.com/extend/plugins/oa-social-login/
*/
function wsl_admin_notification( $user_id, $provider )
{
//Get the user details
$user = new WP_User($user_id);
$user_login = stripslashes($user->user_login);
// The blogname option is escaped with esc_html on the way into the database
// in sanitize_option we want to reverse this for the plain text arena of emails.
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
$message = sprintf(__('New user registration on your site: %s', 'wordpress-social-login'), $blogname ) . "\r\n\r\n";
$message .= sprintf(__('Username: %s' , 'wordpress-social-login'), $user_login ) . "\r\n";
$message .= sprintf(__('Provider: %s' , 'wordpress-social-login'), $provider ) . "\r\n";
$message .= sprintf(__('Profile: %s' , 'wordpress-social-login'), $user->user_url ) . "\r\n";
$message .= sprintf(__('Email: %s' , 'wordpress-social-login'), $user->user_email) . "\r\n";
$message .= "\r\n--\r\n";
$message .= "WordPress Social Login\r\n";
$message .= "https://www.ads-software.com/extend/plugins/wordpress-social-login/\r\n";
@wp_mail(get_option('admin_email'), '[WordPress Social Login] '.sprintf(__('[%s] New User Registration', 'wordpress-social-login'), $blogname), $message);
}
[Please use the code buttons when posting code here]
Can I add a function to this file to send the email?