Tribe__Process__Queue::set_id( string $queue_id )

Sets the queue unique id.

When using this method the client code takes charge of the queue id uniqueness; the class will not check it.


Parameters

$queue_id

(string) (Required)


Top ↑

Source

File: src/Tribe/Process/Queue.php

	public function set_id( $queue_id ) {
		if ( $this->did_save ) {
			throw new RuntimeException( 'The queue id can be set only before saving it.' );
		}

		$queue_id = preg_replace( '/^' . preg_quote( $this->identifier, '/' ) . '_batch_/', '', $queue_id );

		$this->id_base = $queue_id;
	}

Top ↑

Changelog

Changelog
Version Description
4.7.12 Introduced.