Created
April 29, 2014 18:49
-
-
Save jchristopher/11408704 to your computer and use it in GitHub Desktop.
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 my_admin_notices() { | |
$success = true; | |
if( $success ) { | |
?> | |
<div class="updated"> | |
<p><?php _e( '<strong>SUCCESS</strong> Success!', 'mytextdomain' ); ?></p> | |
</div> | |
<?php | |
} else { | |
?> | |
<div class="error"> | |
<p><?php _e( '<strong>ERROR</strong> Error!', 'mytextdomain' ); ?></p> | |
</div> | |
<?php | |
} | |
} | |
add_action( 'admin_notices', 'my_admin_notices' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment