Tribe__Template::set_values( array $values = array(), bool $is_local = true )

Sets a number of values at the same time.

See also


Top ↑

Parameters

$values

(array) (Optional) An associative key/value array of the values to set.

Default value: array()

$is_local

(bool) (Optional) Whether to set the values as global or local; defaults to local as the set method does.

Default value: true


Top ↑

Source

File: src/Tribe/Template.php

	public function set_values( array $values = [], $is_local = true ) {
		foreach ( $values as $key => $value ) {
			$this->set( $key, $value, $is_local );
		}
	}

Top ↑

Changelog

Changelog
Version Description
4.9.11 Introduced.