Plugin Directory

Add Admin JavaScript

Interface for easily defining additional JavaScript (inline and/or by URL) to be added to all administration pages.

Can I add JavaScript I defined via a file, or one that is hosted elsewhere?

Yes, via the "Admin JavaScript Files" input field on the plugin's settings page.

Can I limit what admin pages the JavaScript gets output on?

No, not presently. The JavaScript is added to every admin page on the site.

However, you can preface your selectors with admin page specific class(es) on 'body' tag to ensure CSS only applies on certain admin pages. (e.g. jQuery('body.index-php h2').hide();).

Can I limit what users the JavaScript applies to?

No, not presently. The JavaScript is added for any user that can enter the admin section of the site.

Does this plugin include unit tests?


Requires: 3.5 or higher
Compatible up to: 4.1.8
Last Updated: 2015-2-21
Active Installs: 1,000+


4.5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.