Admin access not working for custom role

4 Replies ·

  1. Hi there,

    We purchased the PRO add-on with admin-access. But it doesn’t seem to be working.
    We followed the steps as described here:
    But it doesn’t work for a custom created role.
    How do we fix this? We want the new role to be able to do some things in the admin.

  2. Justin Tadlock

    I need more information. Can you lay out the details, step by step, of what you’re trying to do?

  3. Justin Tadlock

    Are you using a plugin, such as WooCommerce? It will redirect users out of the admin.

    If you are, you can add this line of code to your theme’s functions.php file to prevent WooCommerce from taking over:

    add_filter( 'woocommerce_prevent_admin_access', '__return_false' );

    Edit: If this is the issue, I’ll go ahead and add this code to Admin Access myself and update the plugin.

  4. Sebastien Jacobs

    Hi Justin,

    The woocommerce_prevent_admin_access filter did the trick. It was indeed blocking admin access.

    Thank you!