File "QueryClausesGenerator.php"
Full Path: /home/shadsolw/public_html/wp-content/plugins/woocommerce/src/Internal/ProductFilters/Interfaces/QueryClausesGenerator.php
File size: 642 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* ClausesProviderInterface interface file.
*/
declare(strict_types=1);
namespace Automattic\WooCommerce\Internal\ProductFilters\Interfaces;
defined( 'ABSPATH' ) || exit;
/**
* QueryClausesGenerator interface.
*
* @internal For exclusive usage of WooCommerce core, backwards compatibility not guaranteed.
*/
interface QueryClausesGenerator {
/**
* Add conditional query clauses based on the filter params in query vars.
*
* @param array $args Query args.
* @param \WP_Query $wp_query WP_Query object.
* @return array
*/
public function add_query_clauses( array $args, \WP_Query $wp_query ): array;
}