How to Display Custom Notices in WordPress Admin

How to Display Custom Notices in WordPress Admin

When entering your WordPress admin, you may find some admin notices for your WordPress core, templates or plugins with the warnings or the important information. This time, we’d like to tell you how to display custom notices in WordPress admin.

In fact, the admin notices generally alert you about some success messages, warnings or errors. For instance, you can be noticed when your plugins are activated successfully or when you need to update your WordPress core to the latest version. However, if your site is working for some clients who know little or even nothing about WordPress, you can add some custom admin notices for the showcase of the helpful information. Even, if your WordPress site is a multi-author one the custom notices can better guide and lead your writers effectively. Now, you can check the following to know how to achieve the display of the custom notices.

Make Use of the Admin Notices Plugin

If you are a WordPress developer or know something about the coding, you can add the custom notices to your WordPress admin manually. However, as this practice requires you to add the code to the functions.php file of your theme and add some CSS classes in the admin stylesheet, newbies and the common WordPress users might be confused. In this case, we highly recommend you to use the KJM Admin Notices plugin.

With this special tool, you can generate and showcase all your custom and dismissable admin notices with ease. Even, you can manage them with their exclusive titles, categories, tags, authors, date and many more. This way, you can feel easy to communicate with some of your other website users.

In the following, we have displayed the detailed steps of how to use this plugin.

Step 1 – Set Up the Basic Settings for This Plugin

Upon the installation, you firstly should activate the function for the custom admin notices. Here, you should click the Settings > KJM Admin Notices button. From the plugin settings page, you should check the first box to enable the overall plugin function.

After that, you can optionally activate the following three features based on your needs.

  • You can add an exclusive custom post type. With it, you can freely add, edit, delete and manage all your custom admin notices.
  • If you want to send the emails to your registered users for informing them of your admin notices, you can tick the box of the “Send Email” option.
  • Lastly, you can enable the comment function. This way, people who can see your admin notices gain the freedom to add some comments.

KJM Admin Notices Setting

Step 2 – Create the Custom Notices

The next step is to generate your custom admin notices. Here, you have to make sure that you have already saved the plugin settings as you have decided in the first step. This way, you can see a new tab from the admin menu bar that is named as Notices.

Here, you can firstly add some categories or the tags for your custom notices. This way, you can better manage them in the latter stage.

Note that the basic categories of these notices include Error, Warning, Information and Success. Here, you can optionally add some new ones based on your true situation.

Notice Categories

After that, you can click the Notices > Add Notices button to create your custom admin notices. For this, you should enter the notice title firstly, which can summarize the main idea of your notice perfectly. After that, you need to write down the detailed information for your custom notice. This process is just as simple as editing your blog post.

Here, we have a simple tip that you’d better keep all your notices explained in no more than two sentences. After all, this is an admin notice only. A lengthy description can make your site unprofessional and irritate your users or clients.

Step 3 – Choose Extra Conditions for Your Custom Notices

After entering the title and the main content of your custom notice, now, you need to choose the notice tags and categories properly. Especially, if you are going to publish plenty of notices in the later days, this step is pretty critical for the better information management.

Next, you can move to the Show Notice to Roles part. Here, you have the freedom to display the notices to all your website users. Or, only people who have the assigned user roles can check some of your published notices.

This can effectively prevent some people from checking the information that they have no permission to see.

Show Notice to Roles

In addition, you can enable the feature of sending the email here. This way, people can be informed of the essential information even if they do not log in the WordPress admin. Also, you can choose to send a copy to you – the administer.

As for the notice display, you can hide the title, the author, the date and the dismiss link as you like.

Send Email Option

Now, you can manage all your notices from the All Notices section.

All Notices

As for the admin display, it looks like the following demo.

Dashboard Notice