Tribe__Events__Community__Tickets__Main::admin_notices()
Hooked to the admin_notices action
Source
File: src/Tribe/Main.php
public function admin_notices() {
if ( ! current_user_can( 'activate_plugins' ) ) {
return;
}
$links = array();
foreach ( $this->get_requisite_plugins() as $plugin ) {
$links[] = sprintf(
'<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>',
esc_attr( $plugin['thickbox_url'] ),
esc_attr( $plugin['short_name'] ),
esc_html( $plugin['short_name'] )
);
}
$message = sprintf(
esc_html__( 'To begin using The Events Calendar: Community Events Tickets, please install and activate the latest version of %1$s', 'tribe-events-community-tickets' ),
$links[0]
);
printf(
'<div class="error"><p>%s</p></div>',
$message
);
}