Skip to content

Instantly share code, notes, and snippets.

@kartikparmar
Last active October 28, 2022 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kartikparmar/e00ac25e7842528e02e1f8dd5f4cddb5 to your computer and use it in GitHub Desktop.
Save kartikparmar/e00ac25e7842528e02e1f8dd5f4cddb5 to your computer and use it in GitHub Desktop.
get today bookings
array(
'post_type' => 'bkap_booking',
'post_status' => array( 'paid', 'pending-confirmation', 'confirmed' ),
'posts_per_page' => -1,
'meta_query' => array(
array(
'key' => '_bkap_start',
'value' => date( 'YmdHis', strtotime( 'today' ) ),
'compare' => '=',
)
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment