LLMS_Notifications::dispatch_processor_async( string $id )

Async callback to dispatch processors


Description Description

Locates the processor by ID and dispatches it for processing.

The trigger hook llms_dispatch_notification_processor_async is called by the action scheduler library.

See also See also


Top ↑

Parameters Parameters

$id

(string) (Required) Processor ID.


Top ↑

Return Return

(array|WP_Error)


Top ↑

Source Source

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

	public function dispatch_processor_async( $id ) {

		$processor = $this->get_processor( $id );
		if ( $processor ) {
			return $processor->dispatch();
		}

		// Translators: %s = Processor ID.
		return new WP_Error( 'invalid-processor', sprintf( __( 'The processor "%s" does not exist.', 'lifterlms' ), $id ) );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.38.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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