Last active
October 12, 2017 08:48
Star
You must be signed in to star a gist
Filter featured products to not show on WC Vendors Pro Dashboard - Products tab.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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