Hey guys, I have a problem with the admin notice action. When I am updating the plugin, this function is executed: http://pastebin.com/YWRS7whL (the admin notice action is on line 6) and the message shows up. But when the plugin is being installed, everything else works fine, but no message is displayed: http://pastebin.com/rtm6w2J4 (the admin notice action is on line 4) Do you have any idea why? What am I doing wrong? Thanks.
Yes. The admin notice hook probably should be somewhere else than in my activation function. But where?
Solved. I use the activation hook to save a new option to the database which is regularly checked for possible change. This is probably the only way how to print the message. If anyone knows a better solution, please let me know.