Support » Plugin: Security Optimizer - The All-In-One WordPress Protection Plugin » Not enough config options on 2FA

  • The 2FA config is weird. Is enabled for two specific roles and doesn’t let you choose. We have custom roles with some elevated privledges and we can’t set 2FA on them…

    Also doesn’t appear to be a way to manually remove IP blocks for forgetful users.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support daniellaivanova

    (@daniellaivanova)

    Hello @dtwx,

    You can take advantage of the Two-Factor Authentication feature for additional user roles by adding the following code to the functions.php file of your active theme:

    add_filter( 'sg_security_2fa_roles', 'add_user_roles_to_2fa' );
    
    function add_user_roles_to_2fa( $roles ) {
    
    $roles[] = 'your_role';
    
    return $roles;
    
    }

    Make sure to substitute your_role with the actual role name.

    As for manually unblocking IP addresses – you are able to do that from your website’s Dashboard -> Security Optimizer > Activity Log -> Blocked. Next to the blocked IP addresses, there should be an Unblock button.

    Best Regards,
    Daniela Ivanova

    GregW

    (@gwmbox)

    This would be a great addition to the plugin to select users for the 2FA

    Thread Starter dtwx

    (@dtwx)

    @daniellaivanova – is there a list of all the filters somewhere? I don’t want to make a post in support if the thing I need is already supported!

    Plugin Support Gergana Petrova

    (@gpetrova)

    Hello @dtwx,

    A full list of the custom filters for the plugin can be located in the link bellow:

    https://eu.siteground.com/tutorials/wordpress/security-optimizer/custom-filters/

    Best Regards,
    Gergana Petrova

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this review.