Last active
November 3, 2017 10:39
-
-
Save pinalj/750669a0bffbd0cd6614c818c7aa0fdf to your computer and use it in GitHub Desktop.
Adding an error notice
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 | |
add_action( 'admin_notices', 'my_error_notice' ); | |
function my_error_notice() { | |
?> | |
<div class="notice notice-error"> | |
<p><?php _e( 'There has been an error.', 'my-text-domain' );?></p> | |
</div> | |
<?php | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment