This code can be used in a plugin or theme.
It enables you to display an admin notice that only displays once.
The code includes a link which once clicked, is recorded in the database for that specific user meaning it will never display again for the same user.
Here’s an example notice generated by this code:
Here’s the code: