Step 1: Add iCal Import URL field to listing/room submission form
Step 2: Add external ical link to listing
Then TownHub will run cron job periodically to check if your listing has an external ical link to imports all dates from the ical to disable booking on those dates. So that users can’t booking listing for those dates.
Step 3: iCal Synchronization Scheduler
You can enable or disable the ical sync and set how long the cron job will run from TownHub Add-Ons screen menu.
Or manually run the job from Tools -> Scheduled Actions scree
Please note that you need to use WooCommerce plugin or Action Scheduler plugin