-
Automatically Log In Customer From WooCommerce Invoice
When sending manual payment invoices to WooCommerce customers, there will be a link that can be used to pay for the order. It will take the customer directly to the payment page where they can pay. Easy peasy, right? The trouble comes in when customers have difficulty logging in so… Listen ⇢
-
Updating WooCommerce Product Dimensions Programmatically
Recently, I needed to update all of the products in a WooCommerce store. The dimensions were included in every product name but I needed them to be set as the product dimensions. If there were only a dozen or so products, manually editing them would be an option but this… Listen ⇢
-
Trigger wc_fragment_refresh from React
For my wife’s cabinet business, I’m working on a replacement for the category archive page that’s built with React. I’ve been able to add items to the cart over the Store REST API but the mini-cart and header count in my theme didn’t update unless the page is refreshed. It’s… Listen ⇢
-
Allow Specific HTML Tags with wp_kses()
Recently, I was working on a UI for a project at work and needed a way to specify what HTML could be run though a WordPress filter. We had been displaying meta keys and values inside text inputs and now we wanted to also allow text areas since they’re better… Listen ⇢
-
Testing Add to Cart with WooCommerce Store API and React App
I’ve been working on a better way to let customers find the correct products in my wife’s cabinet store. To get the layout and and functionality I wanted, I decided to use a React app inside a plugin and connect it with the WooCommerce Store API. The only trouble I… Listen ⇢
-
Using Parent Class’s jsonSerialize When Overridden By Child
Recently, I needed to pass information from a class object to a logger. The data needed to include event information from the child class as well as data from the parent. The methods were protected so json_encode wasn’t an option since it only returns publicly available content. A workaround is… Listen ⇢
-
How to Make a Release Script for a React Based WordPress Plugin
Recently, I’ve been working on a WordPress plugin that utilizes a React app. The only major downside is that pulling together a ZIP file that can be installed into WordPress is a pain. Essentially, I need to create a folder, copy the main plugin file and two folders into this… Listen ⇢
-
Check a WordPress Filter in a Conditional Statement
WordPress’s system of actions and filters are a large part of what makes it such a great platform for developers. It allows us to expand and modify behavior without changing the core code. Recently I wanted to enable a feature unless a filter had been added. It serves essentially the… Listen ⇢
-
How to Retrieve an Option in WordPress
Say you have a feature that you’d like to be able to enable/disable at any time. One way to do this is by saving an option in the _options table and then checking its value to see if the feature is active or not. We can check this by using… Listen ⇢
Meet Bill
Hi, I’m Bill a code wrangler at Automattic focusing on payments. I’m part of the WooCommerce team focusing on our in-house payment systems.










