tribe_events_virtual_show_fail_message()

Shows a message to indicate the plugin cannot be loaded due to missing requirements.


Source #

File: src/functions/load.php

function tribe_events_virtual_show_fail_message() {
	if ( ! current_user_can( 'activate_plugins' ) ) {
		return;
	}

	tribe_events_virtual_load_text_domain();

	$url = 'plugin-install.php?tab=plugin-information&plugin=the-events-calendar&TB_iframe=true';

	$message = sprintf(
		'%1s <a href="%2s" class="thickbox" title="%3s">%3$s</a>.',
		esc_html__(
			'To begin using Virtual Events, please install the latest version of',
			'events-virtual'
		),
		esc_url( $url ),
		esc_html__( 'The Events Calendar', 'events-virtual' )
	);

	// The message HTML is escaped in the line above.
	// phpcs:ignore
	echo '<div class="error"><p>' . $message . '</p></div>';
}

Top ↑

Changelog #

Changelog
Version Description
1.0.0 Introduced.