Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Hide update notices from non-admins

Editors and other users stop seeing “WordPress X is available! Please notify the site administrator.”

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Tested with WordPress 7.1
PHP
<?php

add_action(
	'admin_head',
	static function () {
		if ( ! current_user_can( 'update_core' ) ) {
			remove_action( 'admin_notices', 'update_nag', 3 );
			remove_action( 'network_admin_notices', 'update_nag', 3 );
			remove_action( 'admin_notices', 'maintenance_nag', 10 );
		}
	},
	1
);

In these packs

  • Admin and login: Your branding on the login page, a tidier admin, and handy extras such as duplicating posts.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.