Trying to Hook In on CREATE USER to myCred to award point for a signup
-
Hi, I am trying to award users 100 points in myCRED when they signup via WSL… I added the code below to my theme functions – but it does not seem to be awarding any points…am i hooking into the right place with WSL?
` add_action(‘wsl_process_login_create_wp_user’, ‘wplogin_myplugin_afterconnect’, 10, 3);
function wplogin_myplugin_afterconnect($user_id, $provider, $hybridauth_user_profile){
//global $bp; $wp;
$user_id = get_current_user_id();
$provider = ‘Steam’;
update_user_meta($user_id, ‘last_login’, current_time(‘mysql’));
if ( function_exists( ‘mycred_add’ ) )
mycred_add(
‘registration’,
$user_id,
100,
‘FragPoints for registering via Steam’
);
}
‘
- The topic ‘Trying to Hook In on CREATE USER to myCred to award point for a signup’ is closed to new replies.