tribe_isset_var( string $slug )
Returns the value of a registered variable.
Contents
Example use:
tribe_set_var( 'tec.url', 'http://example.com' );
tribe_isset_var( 'tec.url' );
Parameters
- $slug
-
(string) (Required) The slug of the variable checked using
tribe_isset_var.
Return
(boolean) Either a the given slug exists.
Source
File: src/Tribe/Container.php
function tribe_isset_var( $slug ) {
$container = Tribe__Container::init();
return $container->offsetExists( $slug );
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |