Only show license renewal notice to admins

When your license is due to expire a reminder notice is displayed inside the plugin settings, and a dismissible notice is displayed on the WordPress dashboard. To only show this notice to admins, you can add either of the following to your theme’s functions.php file:

Only show Instagram renewal notice to admins:

add_action('admin_head', 'hide_instagram_renewal');
function hide_instagram_renewal() {
  if( !is_admin() ) echo '<style>.sbi-license-expired, .sbi-license-countdown{ display: none; }</style>';

Only show all of our plugin renewal notices to admins:

add_action('admin_head', 'hide_smash_balloon_renewals');
function hide_smash_balloon_renewals() {
  if( !is_admin() ) echo '<style>.sbi-license-expired, .sbi-license-countdown, .cff-license-expired, .cff-license-countdown, .ctf-license-expired, .ctf-license-countdown{ display: none; }</style>';


Couldn’t find your answer in the docs?

Contact Support

Was this article helpful?