APP_User_Notifications::get_notifications( array $params = '' )
Retrieves a list of notifications for a specific user given a status or notification type
Package
Description Description
Parameters Parameters
- $params
(array) (Optional) (optional) Additional parameters to filter notifications results. Expects notifications meta keys ( e.g.: 'status' => 'unread' ) Reserved meta keys: - limit => -1 to returns all notifications; n to return n notifications - offset => number of post to displace or pass over - order => orders notifications (default is 'DESC'). Accepted values: ASC, DESC
Default value: ''
Return Return
(array) The notifications list sorted by time descending. List index represents the notification timestamp