Tribe__Promise::dispatch()

Overrides the base method to save before dispatching.


Return

(mixed) The dispatch return value.


Top ↑

Source

File: src/Tribe/Promise.php

	public function dispatch() {
		if ( empty( $this->data ) ) {
			$this->complete();

			return null;
		}

		if ( ! $this->did_save ) {
			$this->save();
		}

		return parent::dispatch();
	}

Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.