WordPress at Your Fingertips
function is not described

WC_Query::get_meta_query() public WC 1.0

Appends meta queries to an array.

{} It's a method of the class: WC_Query{}

Hooks from the method
Return

Array.

Usage

$WC_Query = new WC_Query();
$WC_Query->get_meta_query( $meta_query, $main_query );
$meta_query(array)
Meta query.
Default: array()
$main_query(true|false)
If is main query.
Default: false

Code of WC_Query::get_meta_query() WC 5.6.0

public function get_meta_query( $meta_query = array(), $main_query = false ) {
	if ( ! is_array( $meta_query ) ) {
		$meta_query = array();
	}
	return array_filter( apply_filters( 'woocommerce_product_query_meta_query', $meta_query, $this ) );
}