Hosting a wordpress plugin on Github

Someone at WordPress decided that if you want to create a plugin for WordPress, you’ll have to host it at their SVN server. Personally I’m not a big fan of SVN, I’m more a GIT person.

Lucky for me, it appears I’m not the only one. So for my latest WordPress plugin (REST API – Filter Fields) I used Github. Then I came to a few problems that had to be solved

Small problems

  • Github wants a README.md (markdown) file and WordPress wants a readme.txt file with some required options
  • How do I deploy a new version of my plugin to the WordPress SVN server?
  • And how can I make this proces as easy as possible?

Filter the fields returned by the wordpress api

WordPress is a great platform for running a website with a content management system behind it. Around a year ago the released a plugin called WordPress REST API. And this is a really nice addition to WordPress. This plugin enables you to retrieve all the posts/comments/terms in a really easy JSON format.

JSON vs XML

In the last few years JSON has become the default way for app developers to fetch remote data in a mobile app. A nice size comparison between XML and JSON can be found here.

So I wanted to use the wordpress rest api for my next project. It is going to be a mobile application. So I wanted to use JSON as it is smaller then XML (less KB = faster app). By default the api sends back a pretty big JSON file, per post. Last post in JSON

Mooie aanbieding of misleiding?

Op advies van mijn moeder heb ik mijzelf laatst aangemeld voor een proefabonnement voor de Volkskrant. Bij het aanmelden stond al een opmerkelijk Ik accepteer vinkje, namelijk:

Ik ga akkoord met de voorwaarden en ontvang per e-mail, sms en telefoon exclusieve abonnee- en kortingsaanbiedingen.

Maar ik wil toch wel eens proberen of deze krant iets voor mij is, dus ik heb het gewoon aangevinkt (zonder overigens de rest van de “voorwaarden” te lezen).