Tribe__Events__Community__Tickets__Main::set_option( string $option_name, string $value )

Set value for a specific option.


Parameters #

$option_name

(string) (Required) Name of option.

$value

(string) (Required) Value to set.


Top ↑

Source #

File: src/Tribe/Main.php

	public function set_option( $option_name, $value ) {
		if ( ! $option_name ) {
			return;
		}

		if ( ! isset( self::$options ) ) {
			self::get_options();
		}

		self::$options[ $option_name ] = $value;

		update_option( self::OPTIONNAME, self::$options );
	}

Top ↑

Changelog #

Changelog
Version Description
4.6.2 Introduced.