/**
* Will change the minutes it takes an In Cart booking to expire.
* This example reduces the number from 60 to 30.
*
* @param int $minutes 60 is the default passed
* @return int The amount of minutes you'd like to have In Cart bookings expire on.
*/
function change_incart_bookings_expiry_minutes_20170825( $minutes ) {
return 15;
}
add_filter( 'woocommerce_bookings_remove_inactive_cart_time', 'change_incart_bookings_expiry_minutes_20170825' );
add_filter( 'booking_form_fields', 'custom_booking_form_fields' );
function custom_booking_form_fields( $fields ) {
$fields['wc_bookings_field_duration']['label'] = "Sessions";
return $fields;
}