BP_Learndash_Integration::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-integrations/learndash/bp-learndash-integration.php

72
73
74
75
76
77
78
79
80
81
82
83
84
public function rest_api_init( $controllers = array() ) {
    if ( ! class_exists( 'BP_REST_Learndash_Courses_Endpoint' ) ) {
 
        $file_path = trailingslashit( $this->path ) . '/classes/class-bp-rest-learndash-courses-endpoint.php';
        if ( file_exists( $file_path ) ) {
            require_once $file_path;
        }
 
        parent::rest_api_init( array(
            'BP_REST_Learndash_Courses_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.