MNPR Events Calendar follows WordPress coding standards and has filters and actions for extending it. These are some of the most useful.
Calendar and settings
| Hook |
Type |
What it’s for |
mnprec_settings_sanitise |
Filter |
Tidy your own settings when the Settings screen is saved |
mnprec_show_go_pro |
Filter |
Hide the Go Pro screen |
Events
| Hook |
Type |
What it’s for |
mnprec_event_form_detail_fields |
Action |
Add fields to the event form |
mnprec_event_check_details |
Action |
Add to the Check your event screen |
mnprec_event_panel_details |
Action |
Add to the event details on the event page |
mnprec_duplicate_skip_meta |
Filter |
Choose meta that isn’t copied when an event is duplicated |
mnprec_event_duplicated |
Action |
Runs after an event is duplicated |
mnprec_tec_copies_custom_fields |
Filter |
Say on the import screen that your code copies The Events Calendar’s custom fields |
Bookings
| Hook |
Type |
What it’s for |
mnprec_booking_questions_html |
Filter |
Add questions to the booking form |
mnprec_booking_questions_errors |
Filter |
Check the answers |
mnprec_booking_answers |
Filter |
The answers kept with a booking |
mnprec_event_form_booking_extra |
Action |
Add to the event form’s Tickets step |
mnprec_bookings_top |
Action |
Add to the top of the Bookings screen |
Payments
| Hook |
Type |
What it’s for |
mnprec_payment_gateways |
Filter |
Add a payment provider (extend MNPREC_Gateway) |
mnprec_payment_card_choices |
Filter |
Card providers offered on Events → Payments |
mnprec_payment_active_ids |
Filter |
Which providers are taking payments |
mnprec_pay_config |
Filter |
Settings passed to the payment script |
mnprec_pay_more_html |
Filter |
Add payment buttons to the payment page |
mnprec_payment_settings_fields |
Action |
Add fields to Events → Payments |
mnprec_payment_settings_cards |
Action |
Add a provider card to Events → Payments |
In the browser, other ways to pay plug into the payment script through window.mnprecPayMethods.
AI agents
Abilities are registered in the mnpr-events-calendar category (and mnpr-events-calendar-pro for Pro). Use mnprec_ability_event and mnprec_ability_event_saved to add your own data to get-event and save-event.