BP_Groups_Component::rest_api_init( array $controllers = array() )
Init the BP REST API.
Description Description
Parameters Parameters
- $controllers
-
(Optional) See BP_Component::rest_api_init() for description.
Default value: array()
Source Source
File: bp-groups/classes/class-bp-groups-component.php
public function rest_api_init( $controllers = array() ) { parent::rest_api_init( array( 'BP_REST_Groups_Endpoint', 'BP_REST_Group_Membership_Endpoint', 'BP_REST_Group_Invites_Endpoint', 'BP_REST_Group_Membership_Request_Endpoint', 'BP_REST_Attachments_Group_Avatar_Endpoint', ) ); }
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Adds the Group Cover REST endpoint. |
5.0.0 | Introduced. |