Tribe__Events__Main::compatibility_notice()
Display Notice if Event Tickets is Running an Older Version
Source
File: src/Tribe/Main.php
public function compatibility_notice() {
$mopath = $this->pluginDir . 'lang/';
$domain = 'the-events-calendar';
// If we don't have Common classes load the old fashioned way
if ( ! class_exists( 'Tribe__Main' ) ) {
load_plugin_textdomain( $domain, false, $mopath );
} else {
// This will load `wp-content/languages/plugins` files first
Tribe__Main::instance()->load_text_domain( $domain, $mopath );
}
$url = add_query_arg( array(
'tab' => 'plugin-information',
'plugin' => 'event-tickets',
'TB_iframe' => 'true',
), admin_url( 'plugin-install.php' ) );
echo '<div class="error"><p>'
. sprintf(
'%1s <a href="%2s" class="thickbox" title="%3s">%4s</a>.',
esc_html__( 'To continue using The Events Calendar, please install the latest version of', 'the-events-calendar' ),
esc_url( $url ),
esc_html__( 'Event Tickets', 'the-events-calendar' ),
esc_html__( 'Event Tickets', 'the-events-calendar' )
) .
'</p></div>';
}
Changelog
| Version | Description |
|---|---|
| 4.8 | Introduced. |