Tribe__Events__REST__V1__Endpoints__Single_Category::READ_args()
Returns the content of the args array that should be used to register the endpoint with the register_rest_route function.
Return
(array)
Source
File: src/Tribe/REST/V1/Endpoints/Single_Category.php
public function READ_args() {
return array(
'id' => array(
'in' => 'path',
'type' => 'integer',
'description' => __( 'the event category term ID', 'the-events-calendar' ),
'required' => true,
'validate_callback' => array( $this->validator, 'is_event_category' ),
),
);
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |