BP_Blogs_Component::rest_api_init( array $controllers = array() )

Init the BuddyBoss REST API.

Description

Parameters

$controllers

(Optional) See BP_Component::rest_api_init() for description.

Default value: array()

Source

File: bp-blogs/classes/class-bp-blogs-component.php

364
365
366
367
368
369
370
371
372
373
374
375
376
377
public function rest_api_init( $controllers = array() ) {
    if ( is_multisite() ) {
        $controllers = array(
            'BP_REST_Blogs_Endpoint',
        );
 
        // Support to Blog Avatar.
        if ( bp_is_active( 'blogs', 'site-icon' ) ) {
            $controllers[] = 'BP_REST_Attachments_Blog_Avatar_Endpoint';
        }
    }
 
    parent::rest_api_init( $controllers );
}

Changelog

Changelog
Version Description
BuddyBoss 1.3.5 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.