Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 1.64 KB

README.md

File metadata and controls

9 lines (8 loc) · 1.64 KB

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.