Tribe__Tickets__REST__V1__Endpoints__QR::READ_args()
Provides the content of the args array to register the endpoint support for GET requests.
Return
(array)
Source
File: src/Tribe/REST/V1/Endpoints/QR.php
public function READ_args() {
return [
'id' => [
'in' => 'path',
'type' => 'integer',
'description' => esc_html(
sprintf(
// Translators: %s is the 'ticket' label (singular, lowercase).
__( 'The %s id.', 'event-tickets' ),
tribe_get_ticket_label_singular_lowercase( 'rest_qr' )
)
),
'required' => true,
'validate_callback' => [ $this->validator, 'is_ticket_id' ],
],
];
}
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |