Skip navigation

Snippets Snippets

  • WebAware
  • Shop
  • Snippets
  • Search

Search

  • Home
  • About
  • Privacy Policy
  • Mastodon
  • GitHub
  • WordPress
  • RSS
  • Contact Us

Yet another programmer blogging about code

Enqueue scripts on the WordPress front end and login page

8 August 2018

If you want to load a script or stylesheet on both the WordPress front end and login page, here's how to register it once and load it in the appropriate places.

Tags: wordpress
Posted in Snippets | No comments

Read more »

Gravity Forms and WooCommerce country codes

1 June 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.

Tags: gravity forms, woocommerce, wordpress
Posted in Snippets | 2 comments

Read more »

Restrict Amazon SES by domain name

9 April 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.

Tags: amazon ses, email
Posted in Snippets | No comments

Read more »

Select PayPal landing page for Easy Digital Downloads

19 February 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.

Tags: easy digital downloads, gravity forms, paypal, wordpress
Posted in Snippets | No comments

Read more »

Localising a Gravity Forms add-on

25 January 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:

Tags: gravity forms, localisation, php, wordpress
Posted in Snippets | No comments

Read more »

Configure WP Super Cache

2 January 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.

Tags: caching, wordpress
Posted in How-to | No comments

Read more »

Payment receipts with Gravity Forms and eWAY

14 November 2017

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

Tags: eway, gravity forms, wordpress
Posted in How-to | No comments

Read more »

PHP DateInterval can’t have both weeks and days

30 January 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.

Tags: dates, php
Posted in Ramblings | No comments

Read more »

Gravity Forms add-ons need to have capabilities

1 January 2017

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

Tags: gravity forms, wordpress
Posted in Snippets | No comments

Read more »

exim4 with wildcard email aliases

31 December 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.

Tags: email, exim4, linux
Posted in How-to | No comments

Read more »

Customise WooCommerce out of stock message

23 December 2016

Sometimes the WooCommerce out of stock message isn't quite appropriate. Here's a couple of ways to change that message.

Tags: woocommerce, wordpress
Posted in Snippets | 7 comments

Read more »

Searching custom meta on custom post types

26 November 2016

Ever needed to search for a post by something other than the title or post content? If you've built a website with custom post types that have additional fields, it's a good chance that admins will need to search on your custom meta.

Tags: cpt, php, wordpress
Posted in Snippets | 2 comments

Read more »

  • <
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 10
  • 11
  • >

© 2025 WebAware Pty Ltd | ABN 56 079 079 593

  • Mastodon
  • GitHub
  • WordPress
  • RSS
  • Contact Us