Tribe__Template::set_values( array $values = array(), bool $is_local = true )
Sets a number of values at the same time.
Contents
See also
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
setmethod does.Default value: true
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 );
}
}
Changelog
| Version | Description |
|---|---|
| 4.9.11 | Introduced. |