Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter garrzilla

    (@garrzilla)

    bump

    Plugin Author Vladimir Garagulya

    (@shinephp)

    1) Role should include ‘read’ capability to have access to the wp-admin;
    2) WooCommerce automatically redirects to the front-end all users without ‘manage_woocommerce’ or ‘edit_posts’ capability.
    If you don’t wish to give to the user ‘edit_posts’ capability use ‘woocommerce_prevent_admin_access’ filter to allow access to the wp-admin. Add to the active theme functions.php file this code:

    add_filter('woocommerce_prevent_admin_access', 'my_wc_prevent_admin_access');
    function my_wc_prevent_admin_access($prevent_access) {
    
       return false;
    }

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Only View Woocommerce Reports’ is closed to new replies.