Steps
-
Add the PHP code to your child theme’s
functions.phpfile or the Code Snippets plugin. -
Save and activate the snippet.
-
Open any WordPress admin page to see the notice.
Hook Used
– admin_notices — Displays a notice in the WordPress admin area.
Type: WordPress Admin Customization
Output: An informational notice appears at the top of admin pages for administrators. It can be dismissed for the current page view.
Customize: Replace the reminder text with your own message.
function custom_admin_notice_message() {
if ( ! current_user_can( 'manage_options' ) ) {
return;
}
echo '<div class="notice notice-info is-dismissible">';
echo '<p><strong>Reminder:</strong> Please review your website content regularly.</p>';
echo '</div>';
}
add_action( 'admin_notices', 'custom_admin_notice_message' );
Tested on
WordPress 6.8
Reported by the author on October 9, 2026. WPFolks has not verified this.
Not tested against WordPress 7.1.3. It may still work.