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

9
  • Installation
    • Installing WXP Restaurant Menu
  • Basic operations
    • The Tags Menu
    • Understanding the concept
    • The Settings for the WXP Restaurant Menu Plugin
    • The Icon menu
    • The Sets 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 Opening Times
  • Jewish and Islamic holidays
  • For developers
  • Jewish and Islamic holidays: for developers

Jewish and Islamic holidays: for developers

2 min read

0:00 / 1:48
  • 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 add-on has no hooks of its own. It uses the holiday filter of WXP Opening Times to add two providers, one for the Jewish and one for the Islamic holidays. Everything else follows from that.

How it plugs in #

WXP Opening Times builds its list of holidays with the filter wxp_opening_times_holidays. The bundled secular and Christian providers come first. This add-on adds its two providers to that list. See Filter- and action hooks of WXP Opening Times for the arguments of the filter.

Item Value
Filter used wxp_opening_times_holidays (a filter of WXP Opening Times)
Providers added Jewish holidays and Islamic holidays
Minimum version of WXP Opening Times 0.11.0 (holidays with more than one date a year)
Settings option wxp_opening_times_holidays_settings
Settings page admin.php?page=wxp-opening-times-holidays, a sub page of Opening times
Text domain wxp-opening-times-jewish-and-islamic-holidays

Add your own holidays #

You can add holidays in the same way. A provider is an object that implements the HolidayProviderInterface of WXP Opening Times. Add yours to the list in a filter:

add_filter( 'wxp_opening_times_holidays', function ( $providers ) {
    if ( is_array( $providers ) ) {
        $providers[] = new My_Local_Holidays(); // Implements HolidayProviderInterface.
    }
    return $providers;
} );

Good to know #

  • No external calls: all dates are calculated on the server. The Jewish dates are exact, because the Hebrew calendar is arithmetic. The Islamic dates use Umm al-Qura (needs the PHP intl extension) or the tabular calendar, and the settings can shift all holidays of a month by one or two days.
  • When the add-on is off: rules that use its holidays stay in the schedule, show as “not available” and do nothing.
  • Nothing on your pages: the add-on adds no front-end output, scripts or styles.
  • Translations: English, Dutch (informal and formal), German and French are included, and the plugin is ready for translation on translate.wordpress.org.
Updated on November 3, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Jewish and Islamic holidays: for developersJewish and Islamic holidays: for developers

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • How it plugs in
  • Add your own holidays
  • Good to know
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