Just a simple code snippet for anyone that has installed the Yoast plugins only to find themselves getting annoyed at the nag screens to register the plugin.

It needs to be inserted into the functions.php file but please remember that it’s good practice to use a child theme otherwise you’ll lose the code when you next update the theme.

add_action('admin_head', 'remove_yoast_license_nag_from_admin_page');

function remove_yoast_license_nag_from_admin_page() {
	echo '<style>
		div.error {
			display: none;
		}
	</style>';
}
Share this post