tec_tickets_wallet_plus_show_fail_message( $message = null )
Shows a message to indicate the plugin cannot be loaded due to missing requirements.
Source
File: src/functions/load.php
function tec_tickets_wallet_plus_show_fail_message( string $message = null ) {
if ( ! current_user_can( 'activate_plugins' ) ) {
return;
}
tec_tickets_wallet_plus_load_text_domain();
if ( null === $message ) {
$url = 'plugin-install.php?tab=plugin-information&plugin=event-tickets&TB_iframe=true';
$message = sprintf(
'%1s <a href="%2s" class="thickbox" title="%3s">%3$s</a>.',
esc_html__(
'To begin using Event Tickets Wallet Plus, please install the latest version of',
'event-tickets-wallet-plus'
),
esc_url( $url ),
esc_html__( 'Event Tickets', 'event-tickets-wallet-plus' )
);
}
// The message HTML is escaped in the line above.
echo wp_kses_post( '<div class="error"><p>' . $message . '</p></div>' );
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |