woocommerce_products_widget_query_args

woocommerce_products_widget_query_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_products_widget_query_args') is found 1 times:

  • /includes/widgets/class-wc-widget-products.php line 175
    			default:
    				$query_args['orderby'] = 'date';
    		}
    
    		return new WP_Query( apply_filters( 'woocommerce_products_widget_query_args', $query_args ) );
    	}
    
    	/**
    	 * Output widget.
    	 *
    	 * @param array $args     Arguments.