Changing Accommodation Status via Hook
Learn how to customize the "Reserved" label in JetBooking's accommodation status using a WordPress hook and display a user-friendly availability message instead.
Before you start, check the tutorial requirements:
- Elementor (Free version), Block editor (Gutenberg), or Bricks
- JetBooking plugin installed and activated
- JetEngine plugin installed and activated
With the “Accommodation Status” dynamic tag for JetBooking, you can display three statuses:
- Available Label — shows the “Available” text if the property is available for booking on the current date;
- Pending Label — shows the “Available on…” text with the nearest available booking date. It is displayed if the nearest date is less than seven days;
- Reserved Label — shows the “Reserved…” text. It is displayed if the nearest date is greater than or equal to seven days.
If you want to display the Pending Label with the “Available on…” text instead of the Reserved Label, you need to add a hook to your WordPress website.
Preparations
In our case, we place the label on the Single property page. We drag-and-drop a Heading widget (can be another widget that supports dynamic tags) and press the “Dynamic Tags” button.
In the pop-up, we select the “Accommodation Status” option from the JetBooking section.
After saving the changes by clicking the “Publish” button, we proceed to the Single property on the front end.
The “Reserved” status will appear if the nearest available booking date is greater than or equal to seven days, so we book the “20.05.2025 (today’s date) — 31.05.2025” period, using the booking form.
After the page is reloaded, the property obtains the “Reserved” status.
Adding a Hook
The hook can be added either via a custom code snippets plugin (like Code Snippets) or directly in your theme’s functions.php file (preferably in a child theme to prevent changes from being overwritten on updates).
For example, we install and activate the Code Snippets plugin, then proceed to the WordPress Dashboard > All Snippets tab and click the “Add New” button.
We type the hook name into the title bar (e.g., “Booking Reserved Label”) and enter such code into the Functions (PHP) textarea:
add_filter( 'jet-booking/accommodation-status/show-reserved-label', '__return_false' );
Now, we press the “Save Changes and Activate” button to save the snippet.
Checking the Result
Return to the Single property page and check its label, which is displayed with the “Accommodation Status” dynamic tag.
The “Reserved” label is changed to “Available on…” (May 31, 2025, in our case).
That’s all. Now you know how to customize the “Reserved” label in JetBooking‘s accommodation status using a WordPress hook.




