Skip to content
WXP Plugins

Plugins

WXP Restaurant Menu

WXP Opening Times

WXP Local Events

WXP Restaurant Reservations

Demo

Pricing

Support

Docs

FAQ

Buy

Menu

Plugins

- WXP Restaurant Menu

- WXP Opening Times

- WXP Local Events

- WXP Restaurant Reservations

Demo

Pricing

Support

- Docs

- FAQ

Buy

WXP Opening Times

8
  • Installation
    • Installing WXP Opening Times
  • Basic operations
    • Creating your (first) schedule
    • Setting exceptions
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Opening Times shortcodes
  • Jewish and Islamic holidays
    • Installation
      • Installing WXP Opening Times: Jewish and Islamic holidays
    • For developers
      • Jewish and Islamic holidays: for developers

WXP Restaurant Menu

11
  • Installation
    • Installing WXP Restaurant Menu
  • Basic operations
    • Understanding the concept
    • The Settings for the WXP Restaurant Menu Plugin
    • The Icon menu
    • The Sets Menu
    • The Tags Menu
    • The Groups Menu
    • The Categories menu
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Restaurant Menu shortcodes

WXP Local Events

8
  • Installation
    • Installing WXP Local Events
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Local Events shortcodes
  • Local Events for WooCommerce
    • Installation
      • Installing WXP Local Events for WooCommerce
    • For developers
      • Local Events for WooCommerce: for developers
  • Events Feed
    • Installation
      • Installing WXP Events Feed
    • For developers
      • Events Feed: for developers

WXP Restaurant Reservations

6
  • Installation
    • Installing WXP Restaurant Reservations
  • For developers
    • Filter- and action hooks
    • Twig templates
    • WXP Restaurant Reservations shortcodes
  • Rooms
    • Installation
      • Installing WXP Restaurant Bookings: Rooms
    • For developers
      • Rooms: for developers

General Developer Information

1
  • Twig
    • Twig templates in the WXP plugins

WXP Agency Kit

1
  • WXP Agency Kit: demo content from the command line
View Categories
  • Home
  • Documentation
  • WXP Restaurant Reservations
  • For developers
  • Twig templates

Twig templates

1 min read

0:00 / 2:25
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

The booking form and the e-mails of WXP Restaurant Reservations are Twig templates. This guide lists the templates, the values they receive and how to make your own. For an introduction to Twig and the lookup order, see General Developer Information → Twig.

Templates #

File Name What it is
booking-form.html.twig Booking form The form on the page. Used by the shortcode, the block and the widget through the template parameter.
mail-simple.html.twig Simple A plain e-mail. The mail template is chosen in the settings.
mail-modern.html.twig Modern An e-mail with a coloured header and a button.

A template name that does not exist falls back to booking-form. The mail templates are called mail- plus the name that is chosen in the settings, so mail-mine.html.twig is available as “mine”.

The booking form #

  • Copy booking-form.html.twig to wxp-restaurant-reservations/ in your child theme and change the copy. The file holds the markup and the texts.
  • Keep the data-wxp-rr-* attributes. The script fills the calendar and the times and talks to the server; it finds its parts with these attributes.
  • Use the name in the shortcode: [wxp_restaurant_reservations template="my-form"] for a file my-form.html.twig.
Name Contents
form The state of the form (state is ready when bookings are accepted) and its options, such as form.kids.
labels All translated texts.
user name and email of a logged in user, empty for visitors.
zone The area of the restaurant: id and label.
consent_text, privacy_url The text of the consent checkbox (see the filter wxp_rr_consent_text) and the link to the privacy page.
number, box_id, is_manager The start number of guests, a unique id on the page, and whether the visitor can manage the plugin.

The e-mails #

An e-mail template is a complete HTML page with inline styles, because mail programs ignore stylesheets. Copy mail-simple.html.twig or mail-modern.html.twig to your child theme and start from there.

Name Contents
subject, lang The subject and the language code.
intro, restaurant The opening text and the name of the restaurant.
rows The details of the reservation: each row has a label and a value.
button The button, if there is one: label and url.
color, site_url The accent colour and the address of the website.

Change the message afterwards, or switch a mail off, with the filters wxp_rr_mail_message and wxp_rr_mail_enabled. Add your own values with wxp_rr_template_context.

Updated on October 30, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Filter- and action hooksWXP Restaurant Reservations shortcodes
Table of Contents
  • Templates
  • The booking form
  • The e-mails
WXP Plugins

Demo

Pricing

© 2026 WXP Plugins. All prices are in euro, excluding VAT.

WXPPlugins is a brand of WP Digital Marketing - The Netherlands - Chamber of Commerce (KvK) 75580152