Push notifications

Developer reference for wallet push delivery via EPC_Pass_Notifications and EPC_Api_Client::send_pass_push().

API endpoint

HTTP
POST {api_base}/send-pass-notification/{passUuid}
Content-Type: application/json
X-Api-Key: {key}
X-Request-Origin: {site origin}

{ "message": "Title\n\nBody" }

PHP API

PHP
EPC_Api_Client::send_pass_push( $pass_uid, $title, $message );
EPC_Pass_Notifications::send_for_pass( $pass_row, $title, $message );
EPC_Pass_Notifications::maybe_send_for_event( $pass_row, $type, $rule, $event_ts, $replacements );

Integration patterns

ModuleTrigger
MemberPressmepr-reminder-* hooks
WooCommerce Subscriptionswoocommerce_scheduled_subscription_customer_notification_*
Ultimate Membership ProDaily cron — before_level_expire
Paid Memberships ProDaily cron — before_level_expire
Simple MembershipDaily cron — before_level_expire
Event TicketsDaily cron — before_event_start
Events ManagerDaily cron — before_event_start
PW Gift CardsDaily cron — before_card_expire
YITH Gift CardsDaily cron — before_card_expire

Cron modules implement process_scheduled_notifications() and run via epc_pass_notifications_event.

Hooks

HookType
epc_pass_push_titlefilter
epc_pass_push_messagefilter
epc_send_push_notification_urlfilter
epc_send_push_notification_bodyfilter

Storage

Rules: epc_{module}_notification_rules option. Dedupe: epc_passes.meta JSON key notifications_sent.

User guide: Push notifications (user)