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

139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
public function dispatch() {
 
    // Perform the parent method.
    $ret = parent::dispatch();
 
    /**
     * Empty the (saved) data to prevent duplicate data in future batches.
     *
     */
    $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.