Viewing 7 replies - 1 through 7 (of 7 total)
  • @oanhtran1804, WC Marketplace by default hides the “admin-bar” for vendors.

    However, you can provide them the capability by doing a bit of coding using our filter. If you want, we can provide you the name of the filter and all you need to do is pass the value “true” for that filter.

    Let us know if you have any further query.

    Thread Starter oanhtran1804

    (@oanhtran1804)

    Please guide me. I would like admin have vendor account and available access frontend for only who have equal = “admin+vendor” ONLY. Not show admin bar for only “vendor”

    Thanks

    @oanhtran1804 In that case, you have to provide the capability by doing a bit of custom coding and check both roles are set to Admin and Vendor only.

    Let us know if you need any further assistance.

    Thread Starter oanhtran1804

    (@oanhtran1804)

    I used user role plugin sucess create 2 role (admin+vendor) for admin account already

    The question is how to appear frontend toolbar (Top admin bar) when a admin have 2 roles (admin + vendor together)

    Thanks

    Thread Starter oanhtran1804

    (@oanhtran1804)

    Hi i found another issue.
    Issue 2:
    Can you check on your web. When i active your plugin i get lost admin menu “Tools”. Tested:
    + Deactive “user role editor” (beacuse i used to add vendor + admin roles for admin account)
    + Active wc-marketplace
    So it mean that as and admin, i only have admin role, who active your plugin.

    Kindly use this code snippet to provide this feature for both vendor and admin :

    add_action('wcmp_show_admin_bar', 'wcmp_show_admin_bar_callback');
    function wcmp_show_admin_bar_callback(){
    if (class_exists('WCMp')){
    $user = wp_get_current_user();
    if(current_user_can('administrator') && is_user_wcmp_vendor($user))
    return true;
    }
    }

    Let us know if you have any further query.

    Thread Starter oanhtran1804

    (@oanhtran1804)

    Hi, Sorry i did not get notify for this respond. Yes checked. Work good Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Lost admin-bar in frontend’ is closed to new replies.