LLMS_Notifications_Query::get_notifications()

Convert raw results to notification objects


Return Return

(LLMS_Notification[])


Top ↑

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();

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.