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 Parameters
Return Return
(array) The modified $meta_query array
Source Source
File: inventory-presser.php
* @deprecated 15.2.0 This feature has moved to includes/class-range-filters.php. * @param array $meta_query The meta_query member of a WP_Query, retrieved with WP_Query->get('meta_query'). * @param string $key * @param string $value * @param string $compare * @param string $type * @return array The modified $meta_query array */ public static function maybe_add_meta_query( $meta_query, $key, $value, $compare, $type ) { _doing_it_wrong( __METHOD__, 'This feature has moved to includes/class-range-filters.php.', '15.2.0' ); return $meta_query; } /**
Expand full source codeCollapse full source codeView on Github