Skip to content

Instantly share code, notes, and snippets.

@barbwiredmedia
Last active July 6, 2018 17:54
Show Gist options
  • Save barbwiredmedia/327787a6aacc1d478791 to your computer and use it in GitHub Desktop.
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/
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