Tribe__Events__Pro__Geo_Loc::getOption( string $option_name, string $def_value = '', bool $force = false )

Gets a single option from the settings


Parameters

$option_name

(string) (Required) The name of the option to get.

$def_value

(string) (Optional) The default value to return if the option is not set.

Default value: ''

$force

(bool) (Optional) Whether to force the retrieval of the options.

Default value: false


Top ↑

Return

(mixed|void)


Top ↑

Source

File: src/Tribe/Geo_Loc.php

	public function getOption( $optionName, $default = '', $force = false ) {


		if ( ! isset( self::$options ) || $force ) {
			self::getOptions( $force );
		}

		if ( isset( self::$options[ $optionName ] ) ) {
			$option = self::$options[ $optionName ];
		} else {
			$option = $default;
		}

		return apply_filters( 'tribe_geoloc_get_single_option', $option, $default );
	}