Hi Demi,
Yes, you’re almost there. Now that you’ve created a new PHP file, you’ll need to change one line of the code that you’ve created:
https://gist.github.com/NateWr/d0bc04cd4206e4ab84e3fe1a99db08f3#file-custom-late-booking-for-rtb-php-L27
Change the value 120
to the number of minutes you want to block. So two days is 48 hours * 60 minutes = 2880. And then you might want to change the description from “At least 2 hours in advance” to “At least 2 days in advance”.
Once you’ve done that, you can upload the .php file to your /wp-content/plugins/
directory, then activate the plugin from the Plugins list in your WordPress admin area. You should then see the new option appear under Bookings > Settings > Schedule.
To test out the scheduling restrictions, you need to log out as an admin. Admins and Bookings Managers are exempt from these restrictions, so as long as you’re logged in they won’t be applied to you.