BP_REST_XProfile_Repeater_Endpoint::get_endpoint_args_for_item_schema( string $method = WP_REST_Server::DELETABLE )
Edit some properties for the EDITABLE methods.
Description
Parameters
- $method
-
(Optional) HTTP method of the request.
Default value: WP_REST_Server::DELETABLE
Return
(array) Endpoint arguments.
Source
File: bp-xprofile/classes/class-bp-rest-xprofile-repeater-endpoint.php
public function get_endpoint_args_for_item_schema( $method = WP_REST_Server::DELETABLE ) { $args = $this->get_collection_params(); $args['fields'] = array( 'description' => __( 'Pass Field IDs which you want to delete it.', 'buddyboss' ), 'type' => 'array', 'required' => true, 'items' => array( 'type' => 'integer' ), 'validate_callback' => 'rest_validate_request_arg', ); /** * Filters the method query arguments. * * @since 0.1.0 * * @param array $args Query arguments. * @param string $method HTTP method of the request. */ return apply_filters( 'bp_rest_xprofile_repeater_field_delete_query_arguments', $args, $method ); }
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.