The WordPress Representational State Transfer (REST) Application Programming Interface (API) opened up a world of possibilities for website owners and developers. However, sometimes you may need to work with content and services that REST doesn’t support out of the box. Fortunately, it is possible to extend this powerful API with a custom REST endpoint. By defining your own endpoints, you can get WordPress chatting to practically any application or service, including your own bespoke mobile applications. In this post, we’ll discuss why you may want to create a custom endpoint for the WordPress REST API, and then show you how. Let’s […]
How to Add HTTP Security Headers in WordPress (5 Types)
WordPress is one of the world’s most popular Content Management Systems (CMS). However, it’s also a favorite target among hackers, with 4.3 billion attempts to exploit vulnerabilities recorded in a single year. As a site owner, you may find this figure very worrying. Thankfully, there are ways to make your site less susceptible to attacks. By becoming an expert in HTTP security headers, you can restrict the actions that servers and browsers can perform – even if your site contains a known vulnerability. In this post, we’ll discuss what HTTP headers are, and why they’re an important tool in any […]
Introduction to the JSON REST API
Update: For more information, you can download our free ebook, The Ultimate Guide to the WordPress REST API In my article on the future of WordPress, I wrote about how the introduction of a JSON RESTful API to WordPress core will radically expand WordPress’s reach and capabilities. What is so exciting about this new REST API — which is currently available as a plugin, and slated to be included in WordPress 4.1 — is its ability to use it to not only display content from other WordPress sites, or even other applications entirely, but to save content from other sites, whether they are […]
WP REST API Stalled
A two-hour WP REST API team meeting on Slack ended yesterday with the devs at a standstill and the API delayed. The group had gathered to discuss the existing post, term, user, and comment endpoints. The team is investigating handling these issues in a plugin instead of delaying the merge with the core. The biggest issues with these four items are password-protected posts, autosaves, and meta handling. At the end of September, Ryan McCue announced the merge proposal for the API, saying the infrastructure will be merged with 4.4, which it has been, and the endpoints will be taken care of for 4.5. However, some […]
WP Engine To Host Live Webinar On WP REST API On Nov. 18
WP Engine is hosting a live webinar on the WordPress REST API on Nov. 18 at 11 a.m. CT, featuring Torque contributor Josh Pollock. Josh Pollock, the owner and developer of CalderaWP, and Anthony Burchell, Operations Engineer at WP Engine, will be discussing everything WP REST API. The webinar will cover topics on why you should care, the timeline for REST API in WordPress Core, and discuss some “practical, useful and possibly wacky use cases.” You can register here! The webinar is geared towards intermediate to advanced developers as things will get a bit technical. To familiarize yourself with the WP REST […]

No Comments
Start the conversation