Skip to content

Dismiss "Browser Update" nag, dashboard widget, when it is activated, or automatically, if it is in mu-plugins directory. This is not a replacement but just a tool for those who need it.

License

Notifications You must be signed in to change notification settings

luciano-croce/dismiss-browser-nag

Repository files navigation

Dismiss Browser Nag

Build Status

Dismiss "Browser Update" nag, dashboard widget, when is activated, or automatically, if it is in mu-plugins directory.

  • WordPress automatically implements this feature with an annoying widget that is displayed on the dashboard without administrator control, even when you consciously use an out-of-date browser for the most varied reasons.
  • Removing browser update widget, speeds up the loading of dashboard and yours operations on it.
  • Tips: a neat trick, is to put this single file dismiss-browser-nag.php (not its parent directory) in the /wp-content/mu-plugins/ directory (create it if not exists) so you won’t even have to enable it, and will be loaded by default, also, since first step installation of WordPress setup!
  • Explanation: this, is different from the other similar plugins, because uses the filter hook, and not the action hook. Filters should filter information, thus receiving information/data, applying the filter and returning information/data, and then used. However, filters are still action hooks. WordPress defines add_filter/remove_filter as "hooks a function to a specific filter action", and add_action/remove_action as "hooks a function on to a specific action".
  • The code of this plugin, is not written with a php framework, but with a simple php editor, manually.

About

Dismiss "Browser Update" nag, dashboard widget, when it is activated, or automatically, if it is in mu-plugins directory. This is not a replacement but just a tool for those who need it.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published