Notification
Manage BuddyPress Notifications.
Description Description
EXAMPLES EXAMPLES
# Create notification item.
$ wp bp notification create
Success: Successfully created new notification. (ID #5464)
# Delete a notification item.
$ wp bp notification delete 520
Success: Notification deleted.
Source Source
File: cli/src/notification.php
Changelog Changelog
| Version | Description |
|---|---|
| 1.8.0 | Introduced. |
Methods Methods
- check_dependencies — Dependency check for this CLI command.
- create — Create a notification item.
- delete — Delete a notification.
- generate — Generate random notifications.
- get — Get specific notification.
- get_random_action — Get random notification actions based on component.
- list_ — Get a list of notifications.