tribe_unset_var( string $slug )
Returns the value of a registered variable.
Contents
Example use:
tribe_set_var( 'tec.url', 'http://example.com' );
tribe_unset_var( 'tec.url' );
Parameters
- $slug
-
(string) (Required) The slug of the variable registered using
tribe_unset_var.
Return
(void)
Source
File: src/Tribe/Container.php
function tribe_unset_var( $slug ) {
$container = Tribe__Container::init();
try {
$container->offsetUnset( $slug );
} catch ( Exception $e ) {}
}
Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |