Category: Tutorials

H

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

C

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

B

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

H

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

B

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

S

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

M

My Javascript Tools and Workflow Tips

It’s important for a modern front-end developer to have good tools and workflow that is going to survive the perpetually changing land of frameworks, ES specs, Typescript, and slightlybetterthanwhatyoudidyesterday.js craziness. I’ve been working with modern JavaScript tools and frameworks for long enough to have nailed down a pretty good workflow, which I’ll share today. The

D

Dealing with Custom Taxonomies in the WP-API

Update: this article focuses on the WP-API v1. Click here for an article on filtering with the WP-API v2 in WordPress 4.7+. I have recently started working on a mobile app for a WordPress site that relies heavily on custom taxonomies. The app needs to pull in posts from WordPress through the WP-API, and allow

4 Ways to Make Your Ionic App Feel Native

Recent developments in the hybrid world are blurring the lines between hybrid and native. You can now use native transitions and native scrolling, along with a fast framework like Ionic. In many cases, it’s impossible to tell any difference between hybrid and native, since many fully native apps use WebViews. The exciting thing is that

W

Working with Custom Post Types in WP-API v2

If you worked with the first version of the WP-API, you know that getting custom post types was really easy. To get all posts, I could send a GET request to http://scottbolinger.com/wp-json/posts. To get a specific type, I could send my request to http://scottbolinger.com/wp-json/posts?type=event. There have been some pretty big changes in version 2, which

Ionic + WordPress

Enter your email below and I'll send you more details on my Ionic + WordPress toolkit.
Holler Box