Admin Notice

Display a custom notice to all users in the admin area.

Author:Adam Walter (profile at wordpress.org)
WordPress version required:5.4.1
WordPress version tested:5.9
Plugin version:1.2
Added to WordPress repository:06-04-2015
Last updated:25-01-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:8
Plugin URI:https://github.com/adamwalter/admin-notice
Total downloads:5 249
Active installs:900+
plugin download
Click to start download

Admin Notice is a very simple plugin that allows you to display custom notices in the WordPress admin that is visible to all users.

Control over the notice text and styling is available from the plugin’s settings page.

Developers can use the admin_notice_enable hook to control the notice’s visibility on a more granular level. The following example demonstrates how to show the notice only in the “Posts” area of the admin.

add_filter('admin_notice_enable', function($enabled) {

    $screen = get_current_screen();

    if (isset($screen->post_type) && $screen->post_type !== 'post') {
        $enabled = false;
    }

    return $enabled;

}, 10, 1);

Screenshots
FAQ
ChangeLog