Nick Green
  • Posts
  • Contact
  • Add autoupdates to your WordPress plugin that’s hosted on GitHub using update_plugins_{$hostname}

    Add autoupdates to your WordPress plugin that’s hosted on GitHub using update_plugins_{$hostname}

    Synopsis How Since WordPress 5.8, we’ve been able to set the Update URI in the plugin header. Setting that plugin URI allows us to add a filter to modify the update process based on the Update URI. The Code First, you need to add the Update URI to your plugin header, i.e.: Then, add a […]

    January 10, 2023
  • How To Pause WooCommerce Subscription Renewals

    How To Pause WooCommerce Subscription Renewals

    Synopsis I wrote another free mini-plugin. This one allows a WooCommerce store to pause all WooCommerce Subscription renewals. Use Cases There are times when a WooCommerce store needs to temporarily pause all renewals, such as: In these scenarios, it would be fairly safe to pause renewals temporarily, and unpause them after a certain period of […]

    October 17, 2022
  • AutomateWoo Order Action Add Free Product

    AutomateWoo Order Action Add Free Product

    I wrote a mini-plugin. It extends the functionality of AutomateWoo with a custom action which allows you to add a free product to an order as a line item. Intended use This action is intended for downstream use, such as adding a product to the order after it is created, but before it gets shipped, […]

    October 28, 2021
  • Sitting on the Job (Workout for Mom and Dad #3)

    Sitting on the Job (Workout for Mom and Dad #3)

    Time About 30 minutes Equipment needed Jugs and/or 5# weights Chair with arms for L-sit (optional) A timer or clock Warm up! 10 slow hinges 10 slow lunges (assisted if needed) 4 x 20 second door jamb stretch 10 air squats (or sit-to-stand if needed) 30 jumping jacks Workout! This is a Partner Workout. That […]

    October 19, 2021
  • Partners for Life (workout #2 for Mom and Dad)

    Partners for Life (workout #2 for Mom and Dad)

    Time About 30 minutes Equipment needed 1 full one-gallon jug to share Couch A timer or clock Warm up! 10 slow hinges 10 slow lunges (assisted if needed) 4 x 20 second door jamb stretch 10 air squats (or sit-to-stand if needed) 30 jumping jacks Workout! This is a Partner Workout. That means you will […]

    October 15, 2021
  • “Great Jugs” (Workout for Mom & Dad)

    “Great Jugs” (Workout for Mom & Dad)

    Time About 25 minutes Equipment needed 2 full one-gallon jugs per person 2 chairs per person A timer or clock A method to keep track of how many rounds you do (putting change in a cup, or marks on a chalkboard) Warm up! 10 slow hinges 10 samson lunges 4 x 20 second door jamb […]

    September 26, 2021
  • Bloodroot Kids – “Cool Down”

    Bloodroot Kids – “Cool Down”

    A tune my brother and I put together recently:

    August 19, 2021
  • Fight Hedonic Adaptation

    Fight Hedonic Adaptation

    Happiness seekers tend to focus on changing their life circumstances, such as buying a new house, switching jobs, or getting married. However, people have been found to adapt to both positive and negative life changes, such as marriage, job promotion, disability, and widowhood. This process—known as hedonic adaptation—can serve as a formidable barrier to achieving […]

    May 12, 2021
  • Add Product Category to email subject WooCommerce

    Add Product Category to email subject WooCommerce

    This snippet will add a new {product_category} placeholder to the email subject for the New Order email in WooCommerce. So, for example, when I go to WooCommerce > settings > email > New Order > “manage”, I can have a subject line like this: [{site_title}]: New order – [{product_category}] #{order_number}

    April 29, 2021
  • The Natural

    The Natural

    Is there something that you’ve always felt you were naturally good at? Think about that “talent” and try to remember all of the practice that you actually did to get good at that thing without realizing it. Naturally fit? Maybe you grew up in an environment where you loved running around and climbing trees a […]

    December 29, 2020
  • Restrict plugin (or all) autoupdates to business hours – WordPress

    Restrict plugin (or all) autoupdates to business hours – WordPress

    We love the plugin autoupdate functionality in WordPress, but we really don’t want them to update on a Saturday night, potentially bringing a site down and messing up our weekend. Update I’ve made this into a downloadable plugin here: https://github.com/a8cteam51/plugin-autoupdate-filter/ When do plugin autoupdates happen? Every time someone hits admin: add_action( ‘admin_init’, ‘_maybe_update_plugins’ ); This function checks if […]

    December 2, 2020
  • Filter classic WordPress gallery shortcode attributes

    Filter classic WordPress gallery shortcode attributes

    Use Case We ran an automated import from a Tumblr site to a new WordPress site, and all galleries were imported as gallery shortcodes in classic editor blocks, and they all were set to the default 3 columns and showing thumbnail sizes. We wanted to change the gallery settings on those imported galleries to a […]

    September 15, 2020
  • Atreus62 – Office Edition

    Atreus62 – Office Edition

    I recently refurbed an old Atreus62 that I got used, and I’m loving it as my new office board. It was originally built with Cherry MX Greens, which were waaaay too heavy and clicky for me, so I desoldered them and ordered and installed some Gateron Silent Browns, which I love. And not only that, […]

    July 1, 2020
  • Touchscreen interface for SONOS speaker (for my 3-year-old)

    Touchscreen interface for SONOS speaker (for my 3-year-old)

    My 3-year-old loves her music, but our SONOS speakers require a device (phone, computer, etc) to control them. She always has to rely on us to start her music for her. Last week, I had an unprecedented day off; it was glorious time to let my mind create whatever it wanted. And apparently, messing around […]

    June 19, 2020
  • Export Gifted Subscriptions (WooCommerce)

    Export Gifted Subscriptions (WooCommerce)

    Use Case You are trying to export or track which subscriptions have been gifted. Plugins WooCommerce Subscriptions Gifting for WooCommerce Subscriptions WooCommerce Subscriptions Importer and Exporter Snippet Output This will add a new ‘Recipient’ column to your CSV Export, which will include the user ID of the recipient. After importing into Google Sheets or similar, […]

    May 25, 2020
  • Minimum Subscription Period WooCommerce

    Minimum Subscription Period WooCommerce

    There’s no default way to set a minimum subscription period with WooCommerce Subscriptions, but there are a couple of potential solutions to this: Sign-up fee and free trial Let’s say you want a customer to have to pay a minimum amount, and then go monthly after that, you could set a sign-up fee and free […]

    May 14, 2020
  • Log PayPal IPN Payload in WooCommerce

    Log PayPal IPN Payload in WooCommerce

    PayPal Standard communicates with your WooCommerce store using IPNs ( and PDT, if you have it set up, but it’s not as common). For the most part, IPNs are still the standard method of sending information back to a WooCommerce store, such as successful charges, subscription renewals, etc. If you want to capture and log […]

    May 11, 2020
  • Learning to Fly (bedtime story)

    Learning to Fly (bedtime story)

    One spring day, a girl and her best friend were lying in the grass, looking up at the clouds in the sky. “I wish I were a fairy,” said the girl. ”Maybe you are a fairy but you just don’t know it yet,” said her best friend. ”There’s only one way to find out,” said […]

    May 10, 2020
  • Switch between options of same subscription WooCommerce

    Switch between options of same subscription WooCommerce

    Customer use case I have a client that is wanting to set up a subscription where the customer would select a product and it would allow them to select one or more weekdays. The cost of the subscription would be the total of the weekdays selected, and it would be a weekly-recurring order. What I’m […]

    December 9, 2019
  • Reboot Takeaways

    Reboot Takeaways

    This month, I was lucky enough to spend a week in Charlotte taking the 3-day intensive leadership training course that was lead by Reboot. I’m sure there are many recaps and reviews that try to take 3 days worth of jam-packed content and try to distill it into a single post. Instead, I will drop in some takeaways […]

    October 18, 2019
  • Clearing a Clogged Action Scheduler Queue – WooCommerce

    Clearing a Clogged Action Scheduler Queue – WooCommerce

    Clear out completed & cancelled actions safely Would you like to clear out the Action Scheduler 3.0+ completed and cancelled actions in a safe way? You can add this filter to your site: add_filter( ‘action_scheduler_retention_period’, function() { return DAY_IN_SECONDS * 14; } ); This will change the scheduled action retention period to 14 days (instead […]

    August 6, 2019
  • Dear Prospress, Thank You

    Dear Prospress, Thank You

    In a recent Prospress video chat, I was told that getting older means looking back on your life and wondering what happened to the days of standing in a lightning storm in the middle of a field at a music festival on acid. That mental image has come to represent all life-changing moments to me, […]

    May 30, 2019
  • Auto-add free shipping coupon for initial orders only for WooCommerce Subscriptions

    Auto-add free shipping coupon for initial orders only for WooCommerce Subscriptions

    Synopsis Customer wanted to offer free shipping on any orders of at least $25. Additionally, they wanted any subscription renewals to charge shipping normally – the free shipping should only apply to the initial order. To solve this, I’ve suggested using a free shipping coupon, which is applied automatically to the cart if it’s $25 […]

    April 25, 2019
  • Remove Coupons from Cart with Subscriptions

    Remove Coupons from Cart with Subscriptions

    Remove coupons from cart if there’s a subscription product in it.

    April 15, 2019
  • WooCommerce Subscriptions Restrict Product

    WooCommerce Subscriptions Restrict Product

    Here’s a mini-plugin I wrote which extends the functionality of WooCommerce Subscriptions. It restricts subscription products to a certain number of total active (unended) subscriptions on a site. Use case: store owner wants products and subscriptions to have a one-to-one relationship, i.e. each product should only be subscribed to once. For example, subscription product is […]

    April 15, 2019
1 2 3
Next Page→

Proudly powered by WordPress