File: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php
Description
BP_REST_XProfile_Types_Endpoint

XProfile Type endpoints.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:18

BP_REST_XProfile_Types_Endpoint::__construct()

Constructor.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:25

BP_REST_XProfile_Types_Endpoint::register_routes()

Register the component routes.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:35

BP_REST_XProfile_Types_Endpoint::get_items()

Retrieve XProfile Types.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:67

bp_rest_xprofile_types_get_items

Fires after a list of field are fetched via the REST API.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:90

BP_REST_XProfile_Types_Endpoint::get_items_permissions_check()

Check if a given request has access to XProfile Types.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:103

bp_rest_xprofile_types_get_items_permissions_check

Filter the XProfile types `get_items` permissions check.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:134

BP_REST_XProfile_Types_Endpoint::prepare_item_for_response()

Prepares single XProfile type to return as an object.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:146

bp_rest_xprofile_types_prepare_value

Filter the XProfile field returned from the API.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:292

BP_REST_XProfile_Types_Endpoint::get_item_schema()

Get the XProfile types schema, conforming to JSON Schema.

Source: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php:302