do_action( 'bp_rest_friends_create_item', BP_Friends_Friendship $friendship , WP_REST_Response $retval , WP_REST_Request $request )
Fires after a friendship is created via the REST API.
Parameters Parameters
- $friendship
-
(BP_Friends_Friendship) The friendship object.
- $retval
-
(WP_REST_Response) The response data.
- $request
-
(WP_REST_Request) The request sent to the API.
Source Source
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |