• Resolved wag1998

    (@wag1998)


    Hi

    Is it possible to allow other roles apart from admin to use the import and export tools? I am using the plugin ‘User Role Editor’ to grant capabilities and permission but not sure what permissions to grant for the Import and export users and customers plugin.

    Or perhaps there is a function I can add to functions.php to allow another roll to use the Import and export users and customers plugin

    Thanks

    • This topic was modified 3 years, 3 months ago by wag1998.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Javier Carazo

    (@carazo)

    Yes, you have this filter to make this possible.

    apply_filters( 'acui_capability', 'create_users' )

    You can change the capability in order to make this compatible with other roles.

    Thread Starter wag1998

    (@wag1998)

    Sorry, I’m not sure what to do with that. Should I put this line in functions.php

    apply_filters( ‘acui_capability’, ‘create_users’ )

    Plugin Author Javier Carazo

    (@carazo)

    No, like any other hook:

    add_filter( ‘acui_capability’, function( $capability ){ return ‘XXXXXX’; } );

    Change the XXXXX for the capability you want.

    Take care about it. You have to be as restrictive as you can to prevent any security issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allow other roles as well as admin to use this tool’ is closed to new replies.