skip to Main Content

Get products by author id using a WC_Query in WooCommerce?

I trying to get products by post author id using a WC_Query in WooCommerce, so I tried to include a new custom meta_key "_author", with the following: add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handling_custom_meta_query_keys', 10, 3 ); function handling_custom_meta_query_keys( $wp_query_args, $query_vars ) { $meta_key…

VIEW QUESTION
Back To Top
Search