tribe_events_virtual_show_fail_message( ?string $message = null )
Shows a message to indicate the plugin cannot be loaded due to missing requirements.
Contents
Parameters
- $message
-
(?string) (Optional) The message to show. Defaults to null.
Default value: null
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>'; }
Changelog
Version | Description |
---|---|
1.14.0 | Include message as a param. |
1.0.0 | Introduced. |