About
Hey there! We're WC Vendors, the team behind the best WooCommerce multi vendor marketplace plugin.
You can find lots of code snippets on our profile here at WP Code that will enhance your marketplace with some of the less commonly asked for features we have generated installable code snippets for.
If you find a bug in one of these snippets please let us know via the support form on our site :)
And visit us if you're looking for a great multi vendor plugin for WooCommerce!
Recent products table
if ( ! function_exists( 'wcv_remove_recent_product_table_columns' ) ) { /** * Remove columns from Recent Products table…

Make All Users Vendors
/** * Make all new user registrations Vendors. */ add_filter( 'woocommerce_new_customer_data', 'wcv_woocommerce_new_user_data' ); function wcv_woocommerce_new_user_data( $data…

Override the commission calculation priority order
/** * Given the provided list of vendor_ids in the vendors array, override the commission to…

Resetting the Vendor & Pending Vendor Roles
add_filter('woocommerce_login_redirect', 'redo_roles', 10, 2); function redo_roles() { remove_role( 'pending_vendor' ); add_role( 'pending_vendor', __( 'Pending Vendor', 'wcvendors'…

Allow "Mark received" for Digital Product
add_filter( 'wcvendors_pro_mark_order_received_status', '__return_false' );

Opening booking resources editor in new tab
This snippet will open the booking resources editor in a new tab instead of opening it…

Add custom page to the vendor dashboard - custom menu link
add_filter( 'wcv_pro_dashboard_urls', 'custom_menu_link' ); function custom_menu_link( $pages ) { $pages[ 'custom_link' ] = array( 'slug' =>…

Enable product images in vendor order email notifications
add_filter( 'wcvendors_vendor_order_items_args', 'wcv_enable_product_image_vendor_order_email' ); function wcv_enable_product_image_vendor_order_email( $order_item_args ){ $order_item_args['show_image'] = true; return $order_item_args; }

Disable sold by link on checkout page
/** * Disable the sold by link on the checkout page */ add_filter('wcvendors_sold_by_link', 'wcv_disable_checkout_sold_by_link', 10, 2);…

Change the sold by label on the product archive
// Unhook WC Vendors method remove_action( 'woocommerce_after_shop_loop_item', array('WCV_Vendor_Shop', 'template_loop_sold_by'), 9 ); // Define new sold by…

Force product type for all products
// Disable the product type drop down. add_filter('wcv_disable_product_type', function() { return true; } ); /** *…
