Friends::create( $args,  $assoc_args )

Create a new friendship.


Description Description

Top ↑

OPTIONS OPTIONS

: ID of the user who is sending the friendship request. Accepts either a user_login or a numeric ID.
: ID of the user whose friendship is being requested. Accepts either a user_login or a numeric ID.
[–force-accept] : Whether to force acceptance.
[–silent] : Whether to silent the message creation.
[–porcelain] : Return only the friendship id.
## EXAMPLES
$ wp bp friend create user1 another_use Success: Friendship successfully created.
$ wp bp friend create user1 another_use –force-accept Success: Friendship successfully created.


Source Source

File: cli/src/friends.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.