Notification::create( $args, $assoc_args )
Create a notification item.
Description Description
OPTIONS OPTIONS
[–component=
[–action=
[–user-id=
[–item-id=
[–secondary-item-id=
[–date=
[–silent] : Whether to silent the notification creation.
[–porcelain] : Output only the new notification id.
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