How to change interval time in appointment calendar.

Follow these steps to change the interval time in the appointment calendar:

1. Open your theme’s functions.php file

Navigate to your theme’s directory and locate the functions.php file. If it doesn’t exist, create one.

2. Insert the following code snippet

Copy and paste the code snippet below into your functions.php file:

/*
* change a interval time in appointment calendar
*/
add_filter( 'alp_work_hours_slots', 'change_interval_time_range' );

function change_interval_time_range( $range ) {
    return '5';
}

3. Adjust the interval time

Modify the value returned in the change_interval_time_range function to set your desired interval time. The current example is set to ‘5’, representing a 5-minute interval. Adjust this value to your preferred interval in minutes.

4. Save the file

Save the changes to your functions.php file.

By following these steps, you’ve successfully changed the interval time in the appointment calendar. Customize the interval time according to your specific scheduling needs.

$129.00

Billed annually

Buy Now