Posted By

shufflepath on 03/07/12


Tagged

php wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

lashon


Show an urgent message in the WordPress admin panel


 / Published in: PHP
 

  1. function showMessage($message, $errormsg = false)
  2. {
  3. if ($errormsg) {
  4. echo '<div id="message" class="error">';
  5. }
  6. else {
  7. echo '<div id="message" class="updated fade">';
  8. }
  9. echo "<p><strong>$message</strong></p></div>";
  10. }
  11.  
  12. function showAdminMessages()
  13. {
  14. showMessage("Working on Theme's function.php, Do not touch it till further notice.", true);
  15. }
  16. add_action('admin_notices', 'showAdminMessages');

Report this snippet  

You need to login to post a comment.