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 Local Events
  • Local Events for WooCommerce
  • For developers
  • Local Events for WooCommerce: for developers

Local Events for WooCommerce: for developers

1 min read

0:00 / 2:16
  • 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)

WXP Local Events for WooCommerce offers two filters and one action. All names start with wxp_local_events_woocommerce_. The hooks of WXP Local Events itself are in Filter- and action hooks.

Overview #

Hook Type What it does
wxp_local_events_woocommerce_hold_minutes Filter Changes how long a reservation holds its seats while it waits for the payment.
wxp_local_events_woocommerce_open_coupon Filter Decides whether the coupon panel of the cart and block checkout is opened by default for a cart with tickets.
wxp_local_events_woocommerce_noindex Action Fires when a ticket product is marked noindex, so other code can do the same for more SEO plugins.

How to use a hook #

A filter receives a value, can change it and must return it. An action tells you that something happened, and returns nothing. Add your code to the functions.php of your child theme, or to a small plugin of your own.

wxp_local_events_woocommerce_hold_minutes #

Filter. By default the time is the setting Hold stock (minutes) of WooCommerce, or 60 minutes when that is empty. The result is never lower than 5 minutes.

Argument Type Description
$minutes int Minutes.

Return: the number of minutes.

add_filter( 'wxp_local_events_woocommerce_hold_minutes', function ( $minutes ) {
    return 30; // Hold seats for half an hour.
} );

wxp_local_events_woocommerce_open_coupon #

Filter. The coupon field (“Add coupons”) of the block checkout and the cart is opened by default for a cart with tickets, when coupons are enabled in WooCommerce. Return false to keep it closed.

Argument Type Description
$open bool true by default.

Return: true or false.

add_filter( 'wxp_local_events_woocommerce_open_coupon', '__return_false' );

wxp_local_events_woocommerce_noindex #

Action. The ticket product of an event is kept out of the search results. For Rank Math the add-on sets the robots meta itself. For other SEO plugins, use this action to set noindex on the product.

Argument Type Description
$product_id int The id of the ticket product.

Good to know #

  • Product type: the hidden product has the type event_ticket. There is one product per event; the date of the occurrence travels with the cart line.
  • Expiry job: unpaid reservations are released by a job on the schedule wxp_le_woo_quarter_hour (every 15 minutes), hook wxp_local_events_woocommerce_expire.
  • SEO: Yoast SEO and All in One SEO support for noindex follows later; until then use the action above.
Updated on November 3, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Local Events for WooCommerce: for developersLocal Events for WooCommerce: for developers
Table of Contents
  • Overview
  • How to use a hook
  • wxp_local_events_woocommerce_hold_minutes
  • wxp_local_events_woocommerce_open_coupon
  • wxp_local_events_woocommerce_noindex
  • 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