Messages::create( $args,  $assoc_args )

Add a message.


Description Description

Top ↑

OPTIONS OPTIONS

–from= : Identifier for the user. Accepts either a user_login or a numeric ID.

[–to=] : Identifier for the recipient. To is not required when thread id is set. Accepts either a user_login or a numeric ID.

–subject= : Subject of the message.

–content= : Content of the message.

[–thread-id=] : Thread ID.

[–date-sent=] : MySQL-formatted date.

[–silent] : Whether to silent the message creation.

[–porcelain] : Return the thread id of the message.

Top ↑

EXAMPLES EXAMPLES

$ wp bp message create --from=user1 --to=user2 --subject="Message Title" --content="We are ready"
Success: Message successfully created.

$ wp bp message create --from=545 --to=313 --subject="Another Message Title" --content="Message OK"
Success: Message successfully created.

Source Source

File: cli/src/messages.php


			

Top ↑

User Contributed Notes User Contributed Notes

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