woocommerce_products_widget_query_args filter-hookWC 1.0

Usage

add_filter( 'woocommerce_products_widget_query_args', 'wp_kama_woocommerce_products_widget_query_args_filter' );

/**
 * Function for `woocommerce_products_widget_query_args` filter-hook.
 * 
 * @param  $query_args 
 *
 * @return 
 */
function wp_kama_woocommerce_products_widget_query_args_filter( $query_args ){

	// filter...
	return $query_args;
}
$query_args
-

Where the hook is called

WC_Widget_Products::get_products()
woocommerce_products_widget_query_args
woocommerce/includes/widgets/class-wc-widget-products.php 171
return new WP_Query( apply_filters( 'woocommerce_products_widget_query_args', $query_args ) );

Where the hook is used in WooCommerce

Usage not found.