tribe_get_option( string $optionName, string $default = '' )

Get Options

Retrieve specific key from options array, optionally provide a default return value


Parameters

$optionName

(string) (Required) Name of the option to retrieve.

$default

(string) (Optional) Value to return if no such option is found.

Default value: ''


Top ↑

Return

(mixed) Value of the option if found.


Top ↑

Source

File: src/functions/template-tags/general.php

	function tribe_get_option( $optionName, $default = '' ) {
		return apply_filters( 'tribe_get_option', Tribe__Settings_Manager::get_option( $optionName, $default ), $optionName, $default );
	}