• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Tribe__Events__Community__Tickets__Main / Tribe__Events__Community__Tickets__Main::instance()
Product: Community Events Tickets

Tribe__Events__Community__Tickets__Main::instance()

Singleton to instantiate the Community Tickets class


Source

File: src/Tribe/Main.php

	public static function instance() {
		static $instance;

		if ( ! $instance ) {
			$instance = new self;
		}

		return $instance;
	}

Expand full source code Collapse full source code

The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy