I am writing a php json service for mobile app with my Wordpress/Woocommerce site. I have to create an order of bookable hotels which have checkin and checkout date.
How will place an order programmatically using with or with out Woocommerce functions?
Any help is appreciated.
My Hotel room's post type is hotel_room
. I have to update wp_posts, wp_postmeta, woocommerce tables etc...