//Set a custom role for a new user
function oa_social_login_set_new_user_role ($user_role)
{
$current_url = oa_social_login_get_current_url():
// Employer
if (strpos ($current_url, 'employer') !== false)
{
return 'employer';
}
return $user_role;
}
//This filter is applied to the roles of new users
add_filter('oa_social_login_filter_new_user_role', 'oa_social_login_set_new_user_role');
Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.