Add a Custom Javascript Editor to WordPress

Add a Custom Javascript Editor to WordPress

Adding custom Javascript to your WordPress site can be a bit stressful if you don’t know where to add it or what you’re doing. The Custom Javascript Editor was created to make it easy and convenient to add Javascript through the WordPress dashboard.

It keeps your custom Javascript additions separate and tidy in this handy editor, very similar to the way you’re used to editing WordPress template files.

This is a nice, safe way to handle Javascript because it is stored and revisioned with a custom post type. If you make a mistake or need to undo your work, you can always return to a previous revision.

The Custom Javascript Editor is a joint creation of Josh Betz, Daniel Bachhuber and Automattic. Want to contribute? Jump in on github.