Hacker News new | ask | show | jobs
by dustin1114 4124 days ago
I like the idea of a WP API. I guess in the future you could more easily build non-browser apps that utilize WP data. Of course, there's always going to be the people who don't very much like the whole front-end JavaScript MVC idea (Backbone, React, Angular, etc.), but there will still be the regular PHP themes for them to use.

My only wish is that a proliferation of horrible themes based on inefficient JS does not occur. Front-end MVC can be done right, but don't abuse it with bad code that gives the rest a bad name!

2 comments

I just wish there were a WP management API. Like, let me remotely do updates, backups, user administration etc. against a bunch of WP sites from a single console (or better yet, command line script), rather than having to log in to each one individually to do that stuff, which is a pain.

EDIT: So it turns out there's a third party project that kinda sorta does this: WP-CLI (http://wp-cli.org/). Anyone used it?

I've written batch scripts with WP-CLI and mysql to spin up new sites, from scratch, including database creations, install latest core, a suite of base plugins, install themes and create child themes, and configure some options. Works a treat.
Pantheon (hosting) provides a lot of tools for managing Drupal sites like this. Now that they also support hosting Wordpress sites, they may offer similar tools. Might be worth a look: getpantheon.com
Have you tried WP Multi-Site?
I use wp-cli pretty much every day at work
wp cli is the bomb, try it, it rocks!
Very much this.
Note that a “regular PHP theme” could be built on the WP-API instead of the current horrible mess of functions and loops. I’m tempted to port a version of html5-blank-wordpress over to it…