Tribe__PUE__Notices::render_upgrade_key()
Generate a notice listing any plugins which have valid license keys, but those keys have met or exceeded the permitted number of installations they can be applied to.
Source
File: src/Tribe/PUE/Notices.php
public function render_upgrade_key() {
$plugin_names = $this->get_formatted_plugin_names( self::UPGRADE_KEY );
if ( empty( $plugin_names ) ) {
return;
}
$prompt = sprintf( _n(
'You have a license key for %1$s but the key is out of installs. %2$sVisit the Events Calendar website%3$s to manage your installs, upgrade your license, or purchase a new one.',
'You have license keys for %1$s but your keys are out of installs. %2$sVisit the Events Calendar website%3$s to manage your installs, upgrade your licenses, or purchase new ones.', count( $this->notices[ self::UPGRADE_KEY ] ),
'tribe-common'
),
$plugin_names,
'<a href="http://m.tri.be/195d" target="_blank">',
'</a>'
);
$this->render_notice( 'pue_key-' . self::UPGRADE_KEY, "<p>$prompt</p>" );
}