Providing an amazing experience for mobile users is becoming more and more vital. Ideally, every WordPress website you build should be mobile-friendly from the start. However, you can also go a step further, and use WordPress to create web apps that provide a more native mobile experience. When you think about WordPress, web apps probably aren’t the first thing that comes to mind. However, that’s not something that has ever stopped the community before. In fact, WordPress can be surprisingly useful as a web app solution, and it provides you with multiple paths for getting the job done. In this […]
Doc Pop’s News Drop: Using WordPress to Power VR Experiences
Doc Pop’s WordPress News Drop is a weekly report on the most pressing WordPress news. When the news drops, I will pick it up and deliver it right to you. In this week’s video, we chat with Anthony Burchell about his recent experiments with WordPress and VR. Anthony is building a music game using the REST API and WordPress blocks to manage the game’s assets.
Doc Pop’s News Drop: The WordPress REST API Roadmap
Doc’s WordPress News Drop is a weekly report on the most pressing WordPress news. When the news drops, I will pick it up and deliver it right to you. Since the WP-REST API integration into WordPress 4.7, we haven’t heard much news from the API team. This week, Doc Pop talks about a recent update from Ryan McCue on the REST API roadmap and a call for volunteers. “The REST API Roadmap” Love WordPress News, but hate reading? This is Doc Pop’s News Drop! The WordPress REST API has already had a long journey. It was first announced by Ryan […]
The Beginner’s Guide to the WooCommerce REST API
WooCommerce is a powerful ecommerce solution for WordPress, and has a set of Representational State Transfer (REST) API endpoints for custom development. This is a huge advantage for any apps you may build in the future, but to get there you’ll first need to understand the REST API and how to use it. REST APIs enable developers to interact with data in a number of meaningful ways, without being restricted to a front-end interface. By getting to know WooCommerce’s REST API, you’ll also have a complete ecommerce platform to work from in any external application you may build. It can be a […]
4 Ways You Can Start Using the WordPress REST API Right Now
The REST API is finally integrated into WordPress’ core, yet so many developers seem to be at a loss for how to use it in their real world projects. We get it – interacting with APIs can be an intimidating step! However, the REST API opens up a world of opportunity for developers of all skill levels. By offering API access to the WordPress infrastructure, anyone can build an application using that data. You can take advantage of this by incorporating it into your themes, plugins, and even implement completely unique integrations. In this article, we’ll discuss why the REST […]
Overcoming Challenges Adding The WordPress REST API To A Legacy Project
It’s no secret that I am a fan of the WordPress REST API. I use it all the time on new projects, but adding REST API support to my main project — Caldera Forms — has been difficult. Modern WordPress development requires writing PHP code that allows for the same actions to be performed in response to a traditional admin/ front-end HTTP request, a REST API request or WP-CLI request, using the same internal PHP API. In the past, I don’t think following this philosophy mattered much. Settings were changed on admin pages and content was displayed on the front-end. […]
Using VueJS Components With The WordPress REST API
In my last article for Torque, I gave an introduction to using the JavaScript framework VueJS with the WordPress REST API. In that post, you learned how to combine the WordPress REST API with VueJS and jQuery AJAX to show and edit single posts. It was also an introduction to the Vue constructor and template syntax. This week, I want to introduce components and some additional data attributes. Components allow for greater code reuse throughout the application. As a practical example, this article will show how to create a post list and a single post component. Since this is VueJS, […]
Doc Pop’s News Drop: Critical WordPress REST API update
Doc’s WordPress News Drop is a weekly report on the most pressing WordPress news. When the news drops, I will pick it up and deliver it right to you. Tony Perez, from Sucuri Security, joins us this week to talk about the recent set of hacks targeting the WP REST API. If you haven’t already, be sure you are running WordPress version 4.7.2 or higher to keep your site secure.
Unit Testing Custom WordPress REST API Endpoints
I’ve written a lot about the WordPress REST API for Torque, but one thing I have not covered is unit testing custom APIs. That is exactly what this article is. I used a PHP program run the code and compare the results to an expected value. If you want to learn more, I would recommend reading Pippin Williamson’s series on WordPress unit testing. It’s quite excellent and covers how to setup your local environment for testing and how to write tests. For example here is a very simple test: <?php function answer(){ return 42; } class Test_42 extends WP_UnitTestCase { […]
What 2017 Will Mean for Your WordPress Workflow
2016 was a big year for WordPress, and 2017 is already set to be even bigger. With Let’s Encrypt changing the SSL landscape, Automattic changing the criteria of their recommended hosting solutions, and the REST API continuing its emergence, there’s a lot to consider in the months to come. So what does all of this mean for WordPress developers and users? In a nutshell, it means a lot! The new year will bring with it huge changes to the world of WordPress, which could take you by surprise if you’re not up to speed. In this post, we’ll dust off […]
5 Comments