Tribe__Events__Community__Main::setOption( string $optionName, string $value )
Set value for a specific option.
Contents
Parameters
- $value
-
(string) (Required) Value to set.
- $optionName
-
(string) (Required) Name of option.
Source
File: src/Tribe/Main.php
public function setOption( $optionName, $value ) {
if ( ! $optionName ) {
return;
}
if ( ! isset( self::$options ) ) {
self::getOptions();
}
self::$options[ $optionName ] = $value;
update_option( self::OPTIONNAME, self::$options );
}
Changelog
| Version | Description |
|---|---|
| 1.0 | Introduced. |