BP_REST_Attachments_Group_Avatar_Endpoint::__construct()

Constructor.

Description

Source

File: bp-groups/classes/class-bp-rest-attachments-group-avatar-endpoint.php

61
62
63
64
65
66
public function __construct() {
    $this->namespace       = bp_rest_namespace() . '/' . bp_rest_version();
    $this->rest_base       = buddypress()->groups->id;
    $this->groups_endpoint = new BP_REST_Groups_Endpoint();
    $this->avatar_instance = new BP_Attachment_Avatar();
}

Changelog

Changelog
Version Description
0.1.0 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.