BP_REST_Attachments_Blog_Avatar_Endpoint::get_item_schema()
Get the blog avatar schema, conforming to JSON Schema.
Description
Return
(array)
Source
File: bp-blogs/classes/class-bp-rest-attachments-blog-avatar-endpoint.php
public function get_item_schema() { $schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'bp_attachments_blog_avatar', 'type' => 'object', 'properties' => array( 'full' => array( 'context' => array( 'view', 'edit' ), 'description' => __( 'Full size of the image file.', 'buddyboss' ), 'type' => 'string', 'format' => 'uri', 'readonly' => true, ), 'thumb' => array( 'context' => array( 'view', 'edit' ), 'description' => __( 'Thumb size of the image file.', 'buddyboss' ), 'type' => 'string', 'format' => 'uri', 'readonly' => true, ), ), ); /** * Filters the blog avatar schema. * * @param string $schema The endpoint schema. */ return apply_filters( 'bp_rest_attachments_blog_avatar_schema', $this->add_additional_fields_schema( $schema ) ); }
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.