Opened 4 years ago
Last modified 4 years ago
#55630 new enhancement
add array input to meta_query key
| Reported by: | hossin277 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Query | Version: | 5.9.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | performance |
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)
This ticket was mentioned in PR #2635 on WordPress/wordpress-develop by hossinasaadi.
4 years ago
#1
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/55630