Last active
July 6, 2018 17:54
-
-
Save barbwiredmedia/327787a6aacc1d478791 to your computer and use it in GitHub Desktop.
Wordpress admin notice added to functions. Classes include: updated - green , error - red, update-nag - yellow http://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices To create dismissable notices: http://wptheming.com/2011/08/admin-notices-in-wordpress/
This file contains hidden or 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
function my_admin_notice() { | |
?> | |
<div class="error"> | |
<p><?php _e( '3/13/2013 - ATTENTION! Please do not update the Custom Post Type UI Plugin. Versions 1.0.4. and lower are causing issues with content disappearing. Version 0.9.5 is stable and should remain active until futher notice. Please contact support with any questions.', 'my-text-domain' ); ?></p> | |
</div> | |
<?php | |
} | |
add_action( 'admin_notices', 'my_admin_notice' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment