LLMS_Notifications_Query::get_notifications()
Convert raw results to notification objects
Return Return
Source Source
File: includes/notifications/class.llms.notifications.query.php
public function get_notifications() { $notifications = array(); $results = $this->get_results(); if ( $results ) { foreach ( $results as $result ) { $obj = new LLMS_Notification( $result->id ); $notifications[] = $obj->load(); } } if ( $this->get( 'suppress_filters' ) ) { return $notifications; } return apply_filters( $this->get_filter( 'get_notifications' ), $notifications, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |