Skip to content

Instantly share code, notes, and snippets.

@adnan360
Created January 5, 2017 01:36
Show Gist options
  • Save adnan360/1f32ec9f69b8426a92d83c1b5027393e to your computer and use it in GitHub Desktop.
Save adnan360/1f32ec9f69b8426a92d83c1b5027393e to your computer and use it in GitHub Desktop.
Booked plugin snip
$args = array(
'post_type' => 'booked_appointments',
'posts_per_page' => -1,
'post_status' => 'any',
'meta_query' => array(
array(
'key' => '_appointment_timestamp',
'value' => array( $start_timestamp, $end_timestamp ),
'compare' => 'BETWEEN'
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment