Closed martinkrcho closed 3 years ago
We need to add a settings page for this plugin so users can specify which messages they can hide or not. We can start with a very generic setting to capture / not capture system notifications, such as the ones you mentioned above, and many others, like this:
The settings page should be added to the WordPress settings menu node:
The node's title should be: Admin Notices
Text: By default the plugin does not capture system admin notices, such as those shown when a user profile is updated. Use the setting below to also capture these system notices.
Setting: [ ] Capture system admin notices.
This doesn't make much sense to me any more. The system messages handling was added in #20 , but the real-time notices should probably stay as they are. If you agree, @robert81 , please close the issue.
Admin notices added dynamically are not moved to the "Admin Notices" pop-up. We should add handling for notices added after the initial page load, for example during plugin updates. We might move only some of them or make this configurable.
We could use a timer and/or hook into some of these JavaScript events: