Stephan van Rooij

Software architect with a passion for home automation.

WordPress just got even better!

W

Yesterday WordPress 4.4 was released, with this version they improved this product even more.

The most notable new features are, support for oEmbed and an integrated REST API.

What is oEmbed and why is this a new amazing feature? oEmbed is a specification for embedding content from an other website right inside the consuming website. This enables (for instance) Twitter to display the excerpt of a post instead of just a link to your wordpress website. This specification is originally design by (members of) Flicr, but with the wordpress implementation the adoption will get even bigger.

WordPress 4.4 `Clifford`

The REST API started as a plugin but will now be integrated into the wordpress core. This means that everyone can start using the WordPress REST API even easier. This doesn’t seem to be such a big change, but it might be very useful when creating a custom wordpress theme. Loading more posts without navigating to an other page just got easier. You can even use a wordpress website as a backend for a mobile application.

This looks like a magical solution for everything, but it also has a flaw. [opinion_ON] The rest API returns to much information [opinion_OFF], but this can be fixed with my own REST Api - Filter fields plugin. Explained in this other post.

Apart from this flaw I really like the REST API, and also love the fact that they are finally integrating it in the WordPress core!

Install wordpress server site

I

You can install wordpress by using FTP, but sometimes it’s much quicker to do it server site. Basic linux knowledge is needed!. First SSH into the server.

JWT: Part 1 – Introduction

J

What exactly is a Json Web Token? I like to describe them as an easy way to digitally sign some json data about a user, that can then be used as an access token for some kind of api. Check out JSON Web Token on wikepedia for an exact description.

I really like JWTs because they are verifiable without an additional call to some identity server. They are short-lived by default (at least should be). And it is the best option for access tokens at the moment.

Hosting a wordpress plugin on Github

H

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.

Like what you're seeing? Consider Sharing on Twitter or Sponsoring me