Created
June 2, 2019 08:38
-
-
Save paulgoodchild/77803e26033e42b5c20967bf324fec04 to your computer and use it in GitHub Desktop.
[Shield Security] Add custom user roles for email two-factor authenticaton
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( 'odp-shield-2fa_email_user_roles', function ( $aRoles ) { | |
$aRoles[] = 'your_custom_role'; | |
return $aRoles; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment