BP_REST_Document_Endpoint::bp_rest_forums_collection_params( array $params )
Extend the parameters for the Topics and Reply Endpoints.
Description
Parameters
- $params
-
(Required) Query params.
Return
(mixed)
Source
File: bp-document/classes/class-bp-rest-document-endpoint.php
2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 | public function bp_rest_forums_collection_params( $params ) { $params [ 'bbp_documents' ] = array ( 'description' => __( 'Document specific IDs.' , 'buddyboss' ), 'type' => 'array' , 'items' => array ( 'type' => 'integer' ), 'sanitize_callback' => 'wp_parse_id_list' , 'validate_callback' => 'rest_validate_request_arg' , ); return $params ; } |
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.