Tribe__Events__Pro__Geo_Loc::maybe_notify_about_google_over_limit()
Add notification message about the Google Maps API being over its query limit.
Source
File: src/Tribe/Geo_Loc.php
public function maybe_notify_about_google_over_limit() {
if ( ! get_transient( 'tribe-google-over-limit' ) ) {
return;
}
delete_transient( 'tribe-google-over-limit' );
?>
<div class="error">
<p>
<?php
$link = admin_url( 'edit.php?page=tribe-common&tab=addons&post_type=tribe_events' );
printf(
esc_html__(
'The latitude and longitude for your venue could not be fetched. The Google Maps API daily query limit has been reached!. %1$s ',
'tribe-events-calendar-pro'
),
'<a href="' . esc_url( $link ). '">' . esc_html__( 'Enter your API Key', 'tribe-events-calendar-pro' ) . '</a>.'
);
?>
</p>
</div>
<?php
}