Tribe__Events__Community__Main::setOption( string $optionName, string $value )

Set value for a specific option.


Parameters

$value

(string) (Required) Value to set.

$optionName

(string) (Required) Name of option.


Top ↑

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 );
		}

Top ↑

Changelog

Changelog
Version Description
1.0 Introduced.