Skip to content

Instantly share code, notes, and snippets.

@paulgoodchild
Created June 2, 2019 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgoodchild/77803e26033e42b5c20967bf324fec04 to your computer and use it in GitHub Desktop.
Save paulgoodchild/77803e26033e42b5c20967bf324fec04 to your computer and use it in GitHub Desktop.
[Shield Security] Add custom user roles for email two-factor authenticaton
<?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