For over a year now, I have been talking to the WordPress community about JavaScript, specifically AngularJS. Not only have I expressed the growing significance of JavaScript to people in conversation and blog posts, but I have also emphasized its importance in several of my WordCamp talks in 2015. It appears that Matt Mullenweg shares this sentiment, because earlier this month at WordCamp US, he urged everyone to “learn JavaScript, deeply.” In this article, I’m going to walk through the fundamentals of creating a better admin interface for plugin and theme developers using AngularJS. I’ll also demonstrate how you can take it to the next level. I won’t, however, discuss why this is so significant for front-end development or how the REST API changes things to make it easier to build JavaScript applications. If you’re interested in learning more about this, Josh Pollock and I have written extensively about it already on Torque. Before you begin, you must determine what it is you are administering on the site specifically. To keep this simple, let’s say your plugin creates a custom post type (CPT) that is hidden from the sidebar. This use case is simple — you have a CPT to store data,
Share This