Attendees::can_export_attendees( int $event_id )
Determines if the “export” button will be displayed by the the title
Contents
Parameters
- $event_id
-
(int) (Required) The event whose attendees may be exported.
Return
(bool)
Source
File: src/Tickets/Commerce/Reports/Attendees.php
public function can_export_attendees( $event_id ) {
if ( tribe_get_request_var( 'page' ) !== static::$page_slug ) {
return false;
}
if ( ! tribe( Admin_Tables\Attendees::class )->has_items() ) {
return false;
}
if ( ! $this->user_can_manage_attendees( \get_current_user_id(), $event_id ) ) {
return false;
}
return true;
}
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |