I am using Woocommerce and Woocommerce bookings plugins and I would like to add Date Range with time throught a custom code.
I want to add :
- Date from => to
- Time from => to
- Bookable : Yes
I know how to add a lot of other fields like price, name, description etc ... ex.
add_post_meta( $product_ID, '_wc_booking_has_persons', 'yes' );
but I can't figure out how to do it for the Range because it's dynamic and needs a click of button... Any help is much appreciated, thx.