Skip to content

Instantly share code, notes, and snippets.

@digitalchild

digitalchild/functions.php

Last active Oct 12, 2017
Embed
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
You can’t perform that action at this time.