Admin Notice Generator

Generate admin notices for WordPress Dashboard users

Notice type
Notice content (HTML allowed)
Notice dismissible?

AUTO GENERATED CODE

<?php
//Custom admin notice generated by Brewpy.app
if(!function_exists('brewpy_admin_notice_1642621953807')){
function brewpy_admin_notice_1642621953807(){
global $pagenow;
   if($pagenow=='options-general.php'){
      echo "<div class='notice notice-error is-dismissible'>
      <p>Hello users! <a href='#'>Click here</a></p>
      </div>";
    }
}
add_action('admin_notices','brewpy_admin_notice_1642621953807');
}
?>

How to use this code?

  1. Copy auto generated code ↑ (without beginning and ending PHP tags <?php and ?>)
  2. Paste code to bottom of your theme functions.php file
  3. Save and you are done!