BP_REST_XProfile_Search_Form_Fields_Endpoint::get_item_schema()

Get the XProfile field schema, conforming to JSON Schema.

Description

Return

(array)

Source

File: bp-xprofile/classes/class-bp-rest-xprofile-search-form-fields-endpoint.php

129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
public function get_item_schema() {
    $schema = array(
        '$schema'    => 'http://json-schema.org/draft-04/schema#',
        'title'      => 'bp_xprofile_search_form_field',
        'type'       => 'object',
        'properties' => array(),
    );
 
    /**
     * Filters the xprofile search form field schema.
     *
     * @param array $schema The endpoint schema.
     */
    return apply_filters( 'bp_rest_xprofile_search_form_field_schema', $this->add_additional_fields_schema( $schema ) );
}

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.