Changeset 1963250
- Timestamp:
- 10/26/2018 03:51:56 AM (7 years ago)
- Location:
- wp-hotel-booking-wpml-support
- Files:
-
- 8 added
- 3 edited
-
tags/1.8.1 (added)
-
tags/1.8.1/inc (added)
-
tags/1.8.1/inc/class-hbwp-support.php (added)
-
tags/1.8.1/languages (added)
-
tags/1.8.1/languages/wp-hotel-booking-wpml-support.pot (added)
-
tags/1.8.1/license.txt (added)
-
tags/1.8.1/readme.txt (added)
-
tags/1.8.1/wp-hotel-booking-wpml-support.php (added)
-
trunk/inc/class-hbwp-support.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-hotel-booking-wpml-support.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-hotel-booking-wpml-support/trunk/inc/class-hbwp-support.php
r1894888 r1963250 120 120 121 121 add_filter( 'woocommerce_cart_item_name', array( $this, 'woo_cart_item_name' ), 10, 3 ); 122 123 add_filter( 'hotel_booking_query_search_parser', array( $this, 'query_search_parser' ), 10, 2 ); 124 } 125 126 /** 127 * @param $room 128 * @param $args 129 * 130 * @return bool 131 */ 132 public function query_search_parser( $room, $args ) { 133 $cap_id = get_post_meta( $room->ID, '_hb_room_origin_capacity', true ); 134 135 if ( $cap_id ) { 136 $qty = get_term_meta( $cap_id, 'hb_max_number_of_adults', true ); 137 if ( $qty < $args['adults'] ) { 138 return false; 139 } 140 } 141 142 return $room; 122 143 } 123 144 … … 261 282 */ 262 283 public function checkout_wpml_lang_field() { ?> 263 <input type="hidden" name="wpml_language" value="<?php echo $this->current_language_code; ?>">284 <input type="hidden" name="wpml_language" value="<?php echo $this->current_language_code; ?>"> 264 285 <?php } 265 286 -
wp-hotel-booking-wpml-support/trunk/readme.txt
r1894888 r1963250 4 4 Tags: hotel, booking, hotel booking, reservation, reservations, wpml 5 5 Requires at least: 4.2 6 Tested up to: 4.9. 66 Tested up to: 4.9.8 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 59 59 == Changelog == 60 60 61 = 1.8.1 = 62 + Update compatible with WPML 4.0.7 63 61 64 = 1.8 = 62 65 + Update compatible with WPML 4.0.2 -
wp-hotel-booking-wpml-support/trunk/wp-hotel-booking-wpml-support.php
r1894888 r1963250 5 5 Description: Multi language CMS support 6 6 Author: ThimPress 7 Version: 1.8. 07 Version: 1.8.1 8 8 Author URI: http://thimpress.com 9 9 Tags: wphb … … 12 12 define( 'HOTELBOOKING_WMPL_DIR', plugin_dir_path( __FILE__ ) ); 13 13 define( 'HOTELBOOKING_WMPL_URI', plugins_url( '', __FILE__ ) ); 14 define( 'HOTELBOOKING_WMPL_VER', '1.8. 0' );14 define( 'HOTELBOOKING_WMPL_VER', '1.8.1' ); 15 15 16 16 if ( ! class_exists( 'WP_Hotel_Booking_Wpml_Support' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.