Activity::post_update( $args,  $assoc_args )

Post an activity update.


Description Description

Top ↑

OPTIONS OPTIONS

–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.

[–porcelain] : Output only the new activity id.

Top ↑

EXAMPLES EXAMPLES

$ wp bp activity post_update --user-id=50 --content="Content to update"
Success: Successfully updated with a new activity item (ID #13165)

$ wp bp activity post_update --user-id=140
Success: Successfully updated with a new activity item (ID #4548)

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.