Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Notifications::__construct()

Constructor


Description Description


Return Return

(void)


Top ↑

Source Source

File: includes/notifications/class.llms.notifications.php

	private function __construct() {

		$this->load();

		add_action( 'wp', array( $this, 'enqueue_basic' ) );
		add_action( 'wp_print_footer_scripts', array( $this, 'mark_displayed_basics_as_read' ) );

		/**
		 * Customize whether or not async notification dispatching should be used.
		 *
		 * @since 3.38.0
		 *
		 * @param boolean $use_async Whether or not to use async processor dispatching.
		 */
		$use_async = apply_filters( 'llms_processors_async_dispatching', true );
		if ( $use_async ) {
			add_action( 'shutdown', array( $this, 'schedule_processors_dispatch' ) );
			add_action( 'llms_dispatch_notification_processor_async', array( $this, 'dispatch_processor_async' ) );
		} else {
			add_action( 'shutdown', array( $this, 'dispatch_processors' ) );
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0
3.38.0 Schedule processors using an async scheduled action.
3.36.1 Record basic notifications as read during wp_print_footer_scripts.
3.22.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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