Inventory_Presser_Plugin::meta_query_contains_clause( mixed $meta_query, mixed $key, mixed $value, mixed $compare, mixed $type )

Checks if a meta_query already contains a clause.


Parameters

$meta_query

(mixed) (Required)

$key

(mixed) (Required)

$value

(mixed) (Required)

$compare

(mixed) (Required)

$type

(mixed) (Required)


Return

(bool)


Source

File: inventory-presser.php

				return;
			}

			// Get original meta query.
			$meta_query = $query->get( 'meta_query' );
			if ( ! is_array( $meta_query ) ) {
				$meta_query = array();
			}

			$meta_query['relation'] = 'AND';
			$meta_query             = self::maybe_add_meta_query(
				$meta_query,
				apply_filters( 'invp_prefix_meta_key', 'price' ),
				(int) $_GET['max_price'],
				'<=',
				'numeric'
			);
			$query->set( 'meta_query', $meta_query );
		}