5 Critical Javascript Methods You Need To Know For React

While working with React, Vue, Angular, and other frameworks, I find myself writing lots of normal Javascript while working with arrays. Methods like slice(), shift(), find(), filter(), and map() are all over my React app code, but I’ve never prioritized digging into them. I went way too long copy/pasting someone else’s code from StackOverflow, and

One Liners to Edit Object Arrays in JavaScript

If you have an array of objects, for example Posts from the WordPress REST API (or WP-API), how do you manipulate them? Let’s say we make a GET request to an API endpoint, such as https://apppresser.com/wp-json/wp/v2/posts. We get back an object array, we can oversimplify it like this: If we want to find a certain

Headless WordPress with Gatsby

I just released the Gatsby theme I use for this site, called Gatsby Theme Publisher. Update 10/19: this theme has had a lot of updates, and has moved to a new repository. I’ve updated the post to reflect that. This site (scottbolinger.com) uses WordPress as a back-end, and Gatsby as a static front-end with the

Progressive Web Apps – 3 Reasons To Say Screw the App Stores

Progressive web apps are all the rage these days. Many articles have been written about the technical aspects, but I wanted to give some real life examples of when a PWA is a better option than putting an app in the app stores. If you don’t know, a PWA is an application that utilizes modern

How to Submit a Gravity Form While Offline

I get requests to build apps with offline form submission every so often, so I thought it would be fun to build one. In this tutorial I’ll show you how to build a web page on your site that works while offline, and can submit to Gravity Forms on your website when it regains a

Cordova In App Purchases – Validating Subscriptions

I recently built a fairly complex in app purchase system for a client that uses recurring subscriptions. It allows users to purchase a recurring subscription which gives them access to membership content in the app. Recurring purchases are quite a bit more complex than one-time purchases, because you have to keep track of when the

Building a WooCommerce REST API Mobile App

Recently I updated my WP Ionic project to include WooCommerce REST API support, just for fun. It’s become a pretty cool little app, so I thought I’d share it along with some things I learned. Here’s the tl;dr: It’s fast, really fast Variable products, shipping, and payments are the pain points There are pros and

How to Process Payments with the WooCommerce REST API and Stripe

An interesting thing I found out while working with the WooCommerce REST API is that you can’t process payments. You can create orders, but you can’t actually send credit card details and make a payment. If you are making a WooCommerce mobile app this makes things a bit more complicated. I didn’t find many tutorials

Build a Mobile App With Ionic + WordPress

Learn how to build a mobile app that integrates Ionic with WordPress. This project includes: Ionic 3.9.2, WP-API v2 integration WP-API post integration with pull to refresh and infinite scroll Simple login and membership functionality WooCommerce REST API v2 with Stripe payments More coming soon… View on Github This project is mostly for fun, and

Some WP-API Tips for WordPress 4.7+

Now that the WP-API is in core, here are some useful tips for you. Filtering Posts Filtering posts was a bit confusing for me at first, because the documentation seems to suggest you would visit an endpoint like /posts/category/40 to get posts from a certain category. Instead, you are supposed to use arguments in your