LLMS_Abstract_Notification_Processor::dispatch()

Starts the queue.


Return Return

(array|WP_Error) Response from wp_remote_post().


Top ↑

Source Source

File: includes/abstracts/llms.abstract.notification.processor.php

	public function dispatch() {

		$this->log(
			sprintf(
				'Dispatching %s',
				$this->action
			)
		);

		$dispatched = parent::dispatch();

		if ( is_wp_error( $dispatched ) ) {
			$this->log(
				sprintf(
					'Unable to dispatch %1$s: %2$s',
					$this->action,
					$dispatched->get_error_message()
				)
			);
		}

		return $dispatched;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.10.1 Fixed malformed sprintf when logging dispatch errors.
3.8.0
3.38.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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