PluginProbe
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar / 2.1.21
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar v2.1.21
2.1.22 2.1.21 2.1.20 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 trunk 1.1 2.0 2.0.1 2.0.10.2 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.2 2.0.20 2.0.21 All 56 releases
← All changes | core/admin/api-settings.php +9 -20 2.1.222.1.21 View file →
@@ -1,4 +1,4 @@
1 1 <?php
2 2 /**
3 3 * @version 1.0
4 4 * @package General Settings API - Saving different options
@@ -67,27 +67,16 @@
67 67 , 'group' => 'wpbm_listing'
68 68 );
69 69
70 70 //FixIn: 2.1.12.1
71 - $this->fields['wpbm_is_export_only_full_days'] = array(
72 - 'type' => 'checkbox'
73 - , 'default' => $default_options_values['wpbm_is_export_only_full_days'] //'Off'
74 - , 'title' => __('Export only full days (not time)' , 'booking-manager')
75 - , 'label' => __('Check this box to export only full days without time to the .ics feed. This is a limitation in Airbnb and some other services.' , 'booking-manager')
76 - , 'description' => ''
77 - , 'group' => 'wpbm_listing'
78 - );
79 -
80 - if ( class_exists( 'wpdev_bk_biz_l' ) ) {
81 - $this->fields['wpbm_is_export_parent_with_children'] = array(
82 - 'type' => 'checkbox'
83 - , 'default' => $default_options_values['wpbm_is_export_parent_with_children']
84 - , 'title' => __('Include child resources in parent .ics feeds' , 'booking-manager')
85 - , 'label' => __('Export bookings from the parent resource and all its direct child resources through the parent resource .ics feed.' , 'booking-manager')
86 - , 'description' => __('This applies to capacity-based parent resources. Child and single-resource .ics feeds are not changed.' , 'booking-manager')
87 - , 'group' => 'wpbm_listing'
88 - );
89 - }
71 + $this->fields['wpbm_is_export_only_full_days'] = array(
72 + 'type' => 'checkbox'
73 + , 'default' => $default_options_values['wpbm_is_export_only_full_days'] //'Off'
74 + , 'title' => __('Export only full days (not time)' , 'booking-manager')
75 + , 'label' => __('Check this box to export only full days without time to the .ics feed. This is a limitation in Airbnb and some other services.' , 'booking-manager')
76 + , 'description' => ''
77 + , 'group' => 'wpbm_listing'
78 + );
90 79
91 80
92 81 $this->fields['wpbm_start_day_weeek'] = array(
93 82 'type' => 'select'
@@ -690,5 +679,5 @@
690 679 unset( $validated_fields[ 'wpbm_time_format_selection' ] ); // We do not need to this field, because saving to DB only: "time_format" field
691 680
692 681 return $validated_fields;
693 682 }
694 -add_filter( 'wpbm_settings_validate_fields_before_saving', 'wpbm_settings_validate_fields_before_saving__all', 10, 1 ); // Hook for validated fields.
683 +add_filter( 'wpbm_settings_validate_fields_before_saving', 'wpbm_settings_validate_fields_before_saving__all', 10, 1 ); // Hook for validated fields.