vendors not shown
-
Hi
I installed wcmp but don’t added vendor user role. I was add below code:add_filter('woocommerce_login_redirect', 'redo_roles', 10, 2); function redo_roles() { remove_role( 'pending_vendor' ); add_role( 'pending_vendor', __( 'فروشنده در انتظار تایید', 'wcvendors' ), array( 'read' => true, 'edit_posts' => false, 'delete_posts' => false ) ); remove_role( 'vendor' ); add_role( 'vendor', 'فروشنده', array( 'assign_product_terms' => true, 'edit_products' => true, 'edit_product' => true, 'edit_published_products' => false, 'manage_product' => true, 'publish_products' => false, 'read' => true, 'upload_files' => true, 'view_woocommerce_reports' => true, ) ); }now vendor user role added but not show vendors list to assign them to products. Why?????!!!!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘vendors not shown’ is closed to new replies.