The third argument to add_menu_page() is $capability.
add_menu_page(
$page_title,
$menu_title,
$capability,
$menu_slug,
$function,
$icon_url,
$position
);
That governs who can see the page. You’ve registered yours as “administrator”, which is a user role. Presumably your vendors are not of that role. To fix this, you will need to change that argument to a capability (preferably not a role) that your vendors have. You can create custom capabilities for this, which is probably what I’d do.
Related Posts:
- WooCommerce which roles and capabilities control user login re-direct to Woo Account Page?
- Can I remove WooCommerce specific product categories from shop managers?
- How to update user role without logout
- In WooCommerce filter the available Payment Methods by User Role [closed]
- How to change menu page capability
- add_menu_page() for more than one user role
- Admin access for custom user capabilities
- WP_Query with meta_query for children
- WooCommerce limited role
- WooCommerce Customer Role Delete Custom Post Type
- Tried to create a user role that can only edit user information, but my test account cannot view the dashboard. What am I missing?
- Allow add new post access to custom post but not wp post for some role
- WooCommerce Admin order – Only run action if user is loaded
- WooCommerce get_author_posts_url() – Author URL redirecting to shop base
- I have 3 types of prices in WP and I need to change price for each specific user role using hooks
- Switch to user link shortcode
- How to show specific admin menu to specific user role?
- Assign user role by text field in WordPress (Woocommerce) [closed]
- Need help with woocommerce roles
- How to change user role after login?
- Woocommerce customer role doesn’t change if user is already a subscriber [closed]
- How to add capabilities for editor type user to access admin section
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- Changing second user role while updating/downgrading membership level – s2member [closed]
- How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions
- Restrict the shop_manager role to the WooCommerce Orders Page
- Add another user role based on a defined input field in WordPress (Woocommerce)
- Removing unwanted role after purchase
- How to add a Capability to a User Role?
- How can I get a list of users by their role?
- Remove Ability for Other Users to View Administrator in User List?
- Reset default roles and capabilities
- Menu not show woocommerce product category
- What is the right hook to use in WooCommerce for handling the post of the sale price?
- How-to Delay The Capability To Publish Posts?
- Add Additional “Checkout” button next to “Add to cart” button in woocommerce product page
- wc_get_product in a none woocommerce page
- WP WPQuery, not running properly in WP CLI
- How to get all products from an order including variations via SQL query?
- WooCommerce shipping – Different product different shipping? [closed]
- Remove action added through function
- Filter get_adjacent_post to follow woocommerce product category
- Run function on “Place Order” [closed]
- Add custom order meta to Order Completed email
- Hiding products with a specific tag from WooCommerce main shop page
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- show content of a page built using yootheme builder on different page/template
- How to detect if this post is a woocommerce product?
- Set a custom field to all orders
- Force User Registration before visitng Checkout Page
- Complex price options. Am I stuck with 180 variations?
- Improve WooCommerce checkout process [closed]
- How can I put the contents of My Account > Order into a separate page, Woocommerce
- Feed format for woocommerce [closed]
- Convert WordPress Woocomerce product to WordPress post
- Woocommerce hook on address field change [closed]
- Maintenance mode just for WooCommerce shop pages [closed]
- Custom email template for a specific product category
- Same request Mysql/Php not same result
- WooCommerce Registration redirect based on page ID
- Woocommerce change price in cart when discounted
- WooCommerce print subcategory of product
- Remove specific administrator’s capability
- Woocommerce – sell a certain category by unit, another by weight? How?
- How to automatically change the status of product from draft to published when stock qty change from 0 > 1
- Woocommerce checkout page issue – Payment methods not loading – strange “Credit/Debit Card Secure Payment” form
- Sort products by Sale price and stock status
- Pagination in woocommerce – Limiting page-numbers
- Delete method giving 500 error, for this endpoint /wc/store/cart/items
- In woocommerce product details not showing
- Re-arrange the Woocommerce checkout page layout
- How to sort products by price ASC and place all no price products to the end? (Woocommerce)
- Parameters in woocommerce_before_add_to_cart_button hook
- WordPress Woocommerce Endpoint URL
- Will ‘private’ status prevent Woocommerce products to be indexed by search engines?
- Add to cart is not visible in product page
- Notice: Trying to get property of non-object in
- French accented text replaced with ? in woocommerce product list
- Trying to figure out why an error is returned when trying to add an item to the basket on this website
- Conditionnaly replace “Read more” text WooCommerce products
- WooCommerce/Authorize.net interface problem
- Incorrect translation of ‘shipping’ at woocommerce checkout page after WC update 3.4*
- Sell a WooCommerce Product on Content Pages
- How can you get woocomemrce to give you multiple licensing options for a downloadable product?
- WordPress media library don’t load most of the photos in library
- Show “email already used message” first
- delete cart item from the carts when user login from other system
- Site doesn’t work when updating to SSL using nginx
- woocommerce displaying products of a specific page
- Woocommerce set single city to sell to
- Add role and edit page capabilities
- Trying to link to a custom css file in a new folder
- eCommerce solution doesn’t want to display its shortcodes or any content where it’s set to [closed]
- Woocommerce hidden fields with meta keys and values. how?
- How do I make a diagonal strikethrough on wordpress? [closed]
- Woocommerce – Remove ‘Buy Product’ Button from shop page [closed]
- Add woocommerce.css in template?
- error 500 in Back Office when using a woocommerce function in functions.php
- What is the best and cheapest way to generate dashboards about conversions data and store users? [closed]
- woocommerce permalinks like “?p=%post_id%”