Installation
Local zip upload
- Build the distributable zip:
./bin/build-zip.sh - In WordPress admin go to Plugins → Add New → Upload Plugin
- Choose
dist/casablanca-booking.zipand activate
Directory install
Copy the casablanca-booking folder into wp-content/plugins/ and activate from Plugins.
First configuration
Open CASABLANCA Booking in the admin menu, enter Tenant ID and API key, then save. On first successful connection test the plugin schedules daily sync and runs an initial import.
After activation (or a plugin update that changes rewrite rules), open Settings → Permalinks and click Save once. The plugin also flushes rewrite rules on activation and when its rewrite version option changes, so detail URLs like /{detail-page}/{slug}/ work without a manual save in most cases — saving Permalinks remains the reliable fallback.