Tribe__Events__REST__V1__Main::register_endpoints( bool $register_routes = true )
Registers the endpoints, and the handlers, supported by the REST API
Contents
Parameters
- $register_routes
-
(bool) (Optional) Whether routes should be registered as well or not.
Default value: true
Source
File: src/Tribe/REST/V1/Main.php
public function register_endpoints( $register_routes = true ) {
$this->register_documentation_endpoint( $register_routes );
$this->register_event_archives_endpoint( $register_routes );
$this->register_single_event_endpoint( $register_routes );
$this->register_single_event_slug_endpoint( $register_routes );
$this->register_venue_archives_endpoint( $register_routes );
$this->register_single_venue_endpoint( $register_routes );
$this->register_single_venue_slug_endpoint( $register_routes );
$this->register_organizer_archives_endpoint( $register_routes );
$this->register_single_organizer_endpoint( $register_routes );
$this->register_single_organizer_slug_endpoint( $register_routes );
global $wp_version;
if ( version_compare( $wp_version, '4.7', '>=' ) ) {
$this->register_categories_endpoint( $register_routes );
$this->register_tags_endpoint( $register_routes );
}
}