tribe_set_var( string $slug, mixed $value )

Registers a value under a slug in the container.

Example use:

 tribe_set_var( 'tec.url', 'http://example.com' );

Parameters

$slug

(string) (Required) The human-readable and catchy name of the var.

$value

(mixed) (Required) The variable value.


Top ↑

Source

File: src/Tribe/Container.php

	function tribe_set_var( $slug, $value ) {
		$container = Tribe__Container::init();
		$container->setVar( $slug, $value );
	}