WordPress.org

Ready to get started?Download WordPress

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?

Yes.

Requires: 3.5 or higher
Compatible up to: 3.8.3
Last Updated: 2014-1-3
Downloads: 5,414

Ratings

4 stars
4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

0,1,0