Notification::list_( $args,  $assoc_args )

Get a list of notifications.


Description Description

Top ↑

OPTIONS OPTIONS

[–=] : One or more parameters to pass.

[–fields=] : Fields to display.

[–user-id=] : Limit results to a specific member. Accepts either a user_login or a numeric ID.

[–component=] : The component to fetch notifications (groups, activity, etc).

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

Top ↑

[–count=] : How many notification items to list. [–count=] : How many notification items to list.

Top ↑

default: 50 default: 50

Top ↑

[–format=] : Render output in a particular format. [–format=] : Render output in a particular format.

default: table options:

Top ↑

EXAMPLES EXAMPLES

$ wp bp notification list --format=ids
15 25 34 37 198

$ wp bp notification list --format=count
10

$ wp bp notification list --fields=id,user_id
| id     | user_id  |
| 66546  | 656      |
| 54554  | 646546   |

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.