LLMS_Notifications_Query::get_notifications()
Convert raw results to notification objects
Contents
Return Return
Source Source
File: includes/notifications/class.llms.notifications.query.php
* @param array $args Array of default arguments to set up the query with. * @param LLMS_Notifications_Query $notifications_query Instance of `LLMS_Notifications_Query`. */ return apply_filters( 'llms_notifications_query_default_args', $args, $this ); } /** * Convert raw results to notification objects. * * @since 3.8.0 * @since 7.1.0 When loading a notification, if errored, exclude it when not explictly requested. * Drop usage of `this->get_filter( 'default_args' )` in favor of `llms_notifications_query_get_notifications`. * * @return LLMS_Notification[] */ public function get_notifications() { $notifications = array(); $results = $this->get_results();
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |