Tribe__Events__Rewrite::instance( $wp_rewrite = null )
Static Singleton Factory Method
Return
Source
File: src/Tribe/Rewrite.php
public static function instance( $wp_rewrite = null ) {
if ( version_compare( Common::VERSION, '4.9.11-dev', '>=' ) ) {
return parent::instance();
}
/**
* Deprecated piece of code, but we need it in place to make sure
* we dont break with older version of Event Tickets.
*
* @todo remove once we have common version compare back working
*/
if ( ! static::$instance ) {
static::$instance = new static;
static::$instance->setup();
}
return static::$instance;
}