The plugin is hardcoded to return user_id 1. Would be better to grab the first admin user from the database instead:
return $wpdb->get_var("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = 'wp_capabilities' AND meta_value LIKE '%administrator%' LIMIT 1");
]]>
The “dismiss” link works…until the moment you move to another screen when it just comes right back.
If it’s going to be persistent, and I do see the argument for that, maybe integrate it with the toolbar instead? Seedprod’s Coming Soon plugin does this nicely. You can see it(the red block next to the user greeting) at the start of this video.
]]>