Skip to content

Instantly share code, notes, and snippets.

Last active Oct 12, 2017
What would you like to do?
Filter featured products to not show on WC Vendors Pro Dashboard - Products tab.
// Place in your themes functions.php
// Filter products to not show featured products in the vendor dashboard
add_filter( 'wcvendors_pro_table_row_args_product', 'filter_featured' );
function filter_featured( $args ) {
$args[ 'tax_query' ] = array(
array( 'taxonomy' => 'product_visibility',
'field' => 'slug',
'terms' => 'featured',
'operator' => 'NOT IN'
return $args;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment