Activity::comment( $args,  $assoc_args )

Add an activity comment.


Description Description

Top ↑

OPTIONS OPTIONS

: ID of the activity to add the comment.
–user-id= : ID of the user. If none is provided, a user will be randomly selected.
–content= : Activity content text. If none is provided, default text will be generated.
[–skip-notification] : Whether to skip notification.
[–porcelain] : Output only the new activity comment id.
## EXAMPLES
$ wp bp activity comment 560 –user-id=50 –content=”New activity comment” Success: Successfully added a new activity comment (ID #4645)
$ wp bp activity comment 459 –user-id=140 –skip-notification=1 Success: Successfully added a new activity comment (ID #494)


Source Source

File: cli/src/activity.php


			

Top ↑

User Contributed Notes User Contributed Notes

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