Modal::get_modal_button_args( array $args = array() )
Get the default modal button args.
Contents
Parameters
- $args
-
(array) (Optional) Override default args by sending them in the
$args.Default value: array()
Return
(array) The default modal button args.
Source
File: src/Tickets/Admin/Attendees/Modal.php
public static function get_modal_button_args( $args = [] ): array {
$default_args = [
'id' => static::$modal_id,
'append_target' => '#' . static::$modal_target,
'button_classes' => [ 'button', 'action', 'button-primary', 'tec-tickets__admin-settings-attendee-details-button' ],
'button_attributes' => [ 'data-modal-title' => esc_html__( 'Attendee Details', 'event-tickets' ) ],
'button_display' => true,
'button_id' => 'tec-tickets__admin-attendee-details-' . uniqid(),
'button_name' => 'tec-tickets-attendee-details',
'button_text' => esc_attr_x( 'Attendee Details', 'Preview email button on the settings', 'event-tickets' ),
'button_type' => 'button',
'close_event' => 'tribeDialogCloseAttendeeDetailsModal.tribeTickets',
'show_event' => 'tribeDialogShowAttendeeDetailsModal.tribeTickets',
'content_wrapper_classes' => 'tribe-dialog__wrapper event-tickets tribe-common',
'title' => esc_html__( 'Attendee Details', 'event-tickets' ),
'title_classes' => [
'tribe-dialog__title',
'tribe-modal__title',
'tribe-common-h5',
'tribe-modal__title--attendee-details',
],
];
return wp_parse_args( $args, $default_args );
}
Changelog
| Version | Description |
|---|---|
| 5.10.0 | Introduced. |