Menu

Snippets

Yet another programmer blogging about code

Author Archive

Gravity Forms and WooCommerce country codes

Friday, June 1st, 2018

Gravity Forms and its User Registration add-on make it really easy to create custom registration pages. One problem you’ll hit if you combine that with WooCommerce is that WooCommerce uses standard country codes, but Gravity Forms uses country names. But that can be fixed. (more…)

Restrict Amazon SES by domain name

Monday, April 9th, 2018

Amazon Simple Email Service (SES) makes it easy, and cheap, to send emails reliably from a website. Here’s how to set it up for use with multiple domains. (more…)

Select PayPal landing page for Easy Digital Downloads

Monday, February 19th, 2018

Easy Digital Downloads comes with a PayPal Standard payment gateway, which lets us get our store up and selling quickly and cheaply. Let’s get it to select a better landing page with PayPal Standard, and make our credit card customers happier. (more…)

Localising a Gravity Forms add-on

Thursday, January 25th, 2018

The Gravity Forms Add-on Framework makes the job of creating an add-on really easy. But there’s a couple of problems with letting it load our text domain for us:
(more…)

Configure WP Super Cache

Tuesday, January 2nd, 2018

Page caching is important for the performance of your WordPress website. Here’s how to configure WP Super Cache to serve up your site’s content from the cache, without bogging down your server. (more…)

Payment receipts with Gravity Forms and eWAY

Tuesday, November 14th, 2017

Gravity Forms email notifications can be used to send simple payment receipts for eWAY transactions. (more…)

PHP DateInterval can’t have both weeks and days

Monday, January 30th, 2017

PHP has some handy Date classes, including one for specifying date intervals. But you need to be wary of some idiosyncrasies, as I just found out. (more…)

Gravity Forms add-ons need to have capabilities

Sunday, January 1st, 2017

TIL that you need to give Gravity Forms add-ons some capabilities, otherwise they might disappear from the WordPress admin. (more…)

exim4 with wildcard email aliases

Saturday, December 31st, 2016

When you configure exim4 as your email transport, you will likely need to tell it to replace some user names with aliases. To make your life simpler, use wildcards to do the job for you. (more…)

Customise WooCommerce out of stock message

Friday, December 23rd, 2016

Sometimes the WooCommerce out of stock message isn’t quite appropriate. Here’s a couple of ways to change that message. (more…)