Inventory_Presser_Plugin::maybe_add_meta_query( array $meta_query, string $key, string $value, string $compare, string $type )

Filter callback that changes a query’s meta_query value if the meta_query does not already contain the provided $key.


Parameters

$meta_query

(array) (Required) The meta_query member of a WP_Query, retrieved with WP_Query->get('meta_query').

$key

(string) (Required)

$value

(string) (Required)

$compare

(string) (Required)

$type

(string) (Required)


Return

(array) The modified $meta_query array


Source

File: inventory-presser.php

					&& $meta_query['compare'] === $compare
					&& $meta_query['type'] === $type;
				}

				foreach ( $meta_query as $another ) {
					return self::meta_query_contains_clause( $another, $key, $value, $compare, $type );
				}
			}
			return false;
		}

		/**
		 * Modifies the $query to filter vehicles by prices for the Maximum
		 * Price Filter widget.