BP_Forums_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-forums/classes/class-bp-forums-component.php

351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
public function rest_api_init( $controllers = array() ) {
 
    $path = buddypress()->plugin_dir . 'bp-forums/classes/class-bp-rest-bbp-walker-reply.php';
 
    if ( file_exists( $path ) ) {
        require_once $path;
    }
 
    parent::rest_api_init( array(
        'BP_REST_Forums_Endpoint',
        'BP_REST_Topics_Endpoint',
        'BP_REST_Topics_Actions_Endpoint',
        'BP_REST_Reply_Endpoint',
        'BP_REST_Reply_Actions_Endpoint',
    ) );
}

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.