Skip to content

Instantly share code, notes, and snippets.

@nextendweb-laszlo
Last active July 11, 2024 12:27
Show Gist options
  • Save nextendweb-laszlo/ef1503364763cbf24fd6ec22d2e38c59 to your computer and use it in GitHub Desktop.
Save nextendweb-laszlo/ef1503364763cbf24fd6ec22d2e38c59 to your computer and use it in GitHub Desktop.
NSL Override registered role based on tracker data
<?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