Notification::create( $args,  $assoc_args )

Create a notification item.


Description Description

Top ↑

OPTIONS OPTIONS

[–component=] : The component for the notification item (groups, activity, etc). If none is provided, a component will be randomly selected from the active components.

[–action=] : Name of the action to associate the notification. (comment_reply, update_reply, etc).

[–user-id=] : ID of the user associated with the new notification.

[–item-id=] : ID of the associated notification.

[–secondary-item-id=] : ID of the secondary associated notification.

[–date=] : GMT timestamp, in Y-m-d h:i:s format.

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

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

Top ↑

EXAMPLES EXAMPLES

$ wp bp notification create --component=messages --action=update_reply --user-id=523
Success: Successfully created new notification. (ID #5464)

$ wp bp notification add --component=groups --action=comment_reply --user-id=10
Success: Successfully created new notification (ID #48949)

Source Source

File: cli/src/notification.php


			

Top ↑

User Contributed Notes User Contributed Notes

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