Created
May 3, 2018 10:35
-
-
Save westcoastdigital/1aa35a81dd1ad397a028b34c5c89b016 to your computer and use it in GitHub Desktop.
fix iodine issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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