| @@ -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. | |