BP_REST_Attachments_Member_Avatar_Endpoint::get_item_schema()
Get the member avatar schema, conforming to JSON Schema.
Description Description
Return Return
(array)
Source Source
File: bp-members/classes/class-bp-rest-attachments-member-avatar-endpoint.php
public function get_item_schema() { $schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'bp_attachments_member_avatar', 'type' => 'object', 'properties' => array( 'full' => array( 'context' => array( 'view', 'edit' ), 'description' => __( 'Full size of the image file.', 'buddypress' ), 'type' => 'string', 'format' => 'uri', 'readonly' => true, ), 'thumb' => array( 'context' => array( 'view', 'edit' ), 'description' => __( 'Thumb size of the image file.', 'buddypress' ), 'type' => 'string', 'format' => 'uri', 'readonly' => true, ), ), ); /** * Filters the member avatar schema. * * @param string $schema The endpoint schema. */ return apply_filters( 'bp_rest_attachments_member_avatar_schema', $this->add_additional_fields_schema( $schema ) ); }
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |