The BaseHooks extension inserts strings or files specified at LocalSettings.php before end of body tag. As new hooks will be added in new MediaWiki versions, this extension may be extended to more "insertion points" (hooks).

Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension('BaseHooks');, you need to use: