Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#55630 new enhancement

add array input to meta_query key

Reported by: hossin277's profile hossin277 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9.3
Component: Query Keywords: has-patch
Focuses: performance Cc:

Description

use :

'meta_query' => array(
 'relation' => 'OR',
 array(
	 'key' => ['meta_key_1' , 'meta_key_2', 'meta_key_3'],
	 'value' => 23,
 ),
);

Instead of this :

'meta_query' => array(
 'relation' => 'OR',

 array(
	 'key' => 'meta_key_1',
	 'value' => 23,

 ), 
 array(
	 'key' => 'meta_key_2',
	 'value' => 23,

 ), 
 array(
	 'key' => 'meta_key_3',
	 'value' => 23,
 ), 
);

Change History (1)

Note: See TracTickets for help on using tickets.