Support » Plugin: IP Based Login » Allow different User Roles to access IP Based Login settings?

  • Web Infinity


    Hi there,

    Firstly, thanks for this great plugin.

    Can you please let me know the Capability name (ID) what will grant a user role access to be able to use the IP Based Login setting screen?
    I think right now, only admins can use it?

    More info, I’m developing a site where my client login has a certain User Role, not full admin.
    I’ve used User Role Editor ( to grant my client access to all required features but I can’t see a way to add your IP Based Login.

    I think I have to add a custom capability to allow the user role access.
    For example, to allow a user role access to edit plugins, the capability is edit_plugins.
    Would you know what the name I have to use to gain access to IP Based Login?

    I hope that made sense.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author brijeshk89



    We use manage_options role to check if the user is allowed to manage admin settings.

    This is the code we use :

    If you need any further assistance do let us know.

    Thread Starter Web Infinity


    Thanks for the quick reply.

    I granted the user role access to manage_options

    I can now see the admin menu item for Settings>IP Based Login (not the top level admin menu item though) but when I try to access it, it shows ‘Cannot load ip-based-login’ error.

    Also, I better not grant my client access to the whole manage_options as it also shows a load of options they shouldn’t have access to (more chance they’d break the site).

    Is there maybe some PHP I can insert that;
    a) Displays the IP Based Login menu item
    b) Grants access to a certain user role?

    Thanks again.

    Plugin Author brijeshk89



    At the moment admin privileges are required to manage IP Based Login settings page.

    We will need to make changes to allow users without admin role to manage IP Based login settings for their respective accounts.

    That’s what you need right or you need to users to allow IP Based Login settings for other accounts as well ?

    You can email me at brijeshk89[@]gmail[dot]com and we can discuss this in detail.

    Thread Starter Web Infinity


    Thanks, will do.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allow different User Roles to access IP Based Login settings?’ is closed to new replies.