• Resolved Legars

    (@legars)


    Hello,

    Is it possible to adjust the arrival dely to 17h > 22h, instead of all the hours available on the form?

    Thank you very much

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author benitolopez

    (@benitolopez)

    Yes, you can use something like this:

    function hotelier_child_modify_arrival_time_options( $fields ) {
    if ( isset( $fields['arrival_time']['options'] ) ) {
    $fields['arrival_time']['options'] = array(
    '-1' => esc_html__( 'I don\'t know', 'wp-hotelier' ),
    '17' => '17:00 - 18:00',
    '18' => '18:00 - 19:00',
    '19' => '19:00 - 20:00',
    '20' => '20:00 - 21:00',
    '21' => '21:00 - 22:00',
    '22' => '22:00 - 23:00'
    );
    }

    return $fields;
    }
    add_filter( 'hotelier_booking_additional_information_fields', 'hotelier_child_modify_arrival_time_options', 20 );

    Add this to your child theme’s functions.php or in a custom plugin

    Thread Starter Legars

    (@legars)

    Hello,
    Thank you very much! That work great! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘arrival hours’ is closed to new replies.