[wp-trac] [WordPress Trac] #55630: add array input to meta_query key
WordPress Trac
noreply at wordpress.org
Wed Apr 27 14:55:34 UTC 2022
#55630: add array input to meta_query key
-------------------------+-----------------------------
Reporter: hossin277 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 5.9.3
Severity: normal | Keywords: has-patch
Focuses: performance |
-------------------------+-----------------------------
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,
),
);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55630>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list