LLMS_Abstract_Processor::dispatch()

Dispatch


Description Description

Overrides the parent method to reset the (saved) $data property and prevent duplicate data being pushed into future batches.


Top ↑

Return Return

(array|WP_Error) Result of wp_remote_post()


Top ↑

Source Source

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

	public function dispatch() {

		// Perform the parent method.
		$ret = parent::dispatch();

		/**
		 * Empty the (saved) data to prevent duplicate data in future batches.
		 *
		 * @link https://github.com/gocodebox/lifterlms/issues/1602
		 */
		$this->data = array();

		return $ret;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.21.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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