Skip to content

Instantly share code, notes, and snippets.

@westcoastdigital
Created May 3, 2018 10:35
Show Gist options
  • Save westcoastdigital/1aa35a81dd1ad397a028b34c5c89b016 to your computer and use it in GitHub Desktop.
Save westcoastdigital/1aa35a81dd1ad397a028b34c5c89b016 to your computer and use it in GitHub Desktop.
fix iodine issue
<?php
function iodine_is_active() {
if ( !class_exists('Iodine_Plugin') ) {
?>
<div class="notice notice-error is-dismissible">
<p>
<a target="_blank"
href="https://github.com/saltnpixels/Iodine"> <?php _e( 'This theme works best with iodine installed!!', 'digipress' ); ?></a>
</p>
</div>
<?php }
}
add_action( 'admin_notices', 'iodine_is_active' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment