Skip to content

Commit

Permalink
Remove date picker/cost code
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshreve committed Dec 21, 2015
1 parent 0ebfad8 commit b286270
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions includes/class-wc-accommodation-booking-date-picker.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class WC_Accommodation_Booking_Date_Picker {
public function __construct() {
add_filter( 'woocommerce_bookings_date_picker_start_label', array( $this, 'start_label' ) );
add_filter( 'woocommerce_bookings_date_picker_end_label', array( $this, 'end_label' ) );
add_filter( 'woocommerce_bookings_date_picker_args', array( $this, 'date_picker_args' ), 10, 2 );
}

/**
Expand All @@ -33,13 +32,6 @@ public function end_label( $label ) {
return __( 'Check-out', 'woocommerce-accommodation-bookings' );
}

/**
* Adds costs to our date picker args so we can show them in the JS.
*/
public function date_picker_args( $args, $booking_form ) {
$args['show_costs'] = true;
return $args;
}
}

new WC_Accommodation_Booking_Date_Picker;

0 comments on commit b286270

Please sign in to comment.