Hooks::filter_attendee_report_link( string $url, int $post_id )
If an event is using Tickets Commerce, use the new Attendees View URL
Contents
Parameters
- $url
-
(string) (Required) the current Attendees View url.
- $post_id
-
(int) (Required) the event id.
Return
(string)
Source
File: src/Tickets/Commerce/Hooks.php
public function filter_attendee_report_link( $url, $post_id ) {
if ( Module::class !== Module::get_event_ticket_provider( $post_id ) ) {
return $url;
}
return add_query_arg( [ 'page' => 'tickets-commerce-attendees' ], $url );
}
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |