WPbooking Tour

Class WPBooking_Accommodation_Service_Type is service type Accommodation. You can post any kind of property like hotel, hostel, room … anything called accommodation. The class uses the following action and filter: Back-End Init Register service type Tour :  add_action('init', array($this, '_register_tour_type')); Init Register meta box :  add_action('init', array($this, '_register_meta_fields')); Add options Tour in setting service type: $this->settings=array(...); Front-End Filter changes the base tour price […]

Read More

WPbooking Accommodation

Class WPBooking_Accommodation_Service_Type is service type Accommodation. You can post any kind of property like hotel, hostel, room … anything called accommodation. Here are the action and filter that the class uses! Back-End Init Register service type Accommodation and meta box :  add_action('init', array($this, '_add_init_action')); Add options Accommodation trong setting service type: $this->settings=array(...); Ajax display form edit room information: add_action('wp_ajax_wpbooking_show_room_form', array($this, '_ajax_room_edit_template')); […]

Read More