Last active
July 11, 2024 12:27
-
-
Save nextendweb-laszlo/ef1503364763cbf24fd6ec22d2e38c59 to your computer and use it in GitHub Desktop.
NSL Override registered role based on tracker data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('nsl_register_roles', function($roles) { | |
if (NextendSocialLogin::getTrackerData() === "vendor") { | |
$roles = ["vendor"]; | |
} | |
return $roles; | |
}, 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment