Tribe__Events__Pro__Service_Providers__RBE::get_in_use()

Returns the slug, if any, of the engine currently in use.

The value will be read from the rbe_engine Tribe option.


Return

(string|null) The slug of the engine currently in use.


Top ↑

Source

File: src/Tribe/Service_Providers/RBE.php

	public function get_in_use() {
		$slug = tribe_get_option( self::OPTION_NAME, self::VERSION_1 );

		if ( ! array_key_exists( $slug, $this->get_engines_map() ) ) {
			// If the engine that  should be in use is not registered then let's use none.
			return self::NONE;
		}

		return $slug;
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.