Skip to content

Instantly share code, notes, and snippets.

View mtruitt's full-sized avatar

Mark Truitt mtruitt

  • Maryland
View GitHub Profile
@wpmudev-sls
wpmudev-sls / smush-original-images.php
Last active November 11, 2023 23:01
[Smush] - Original Images. Currently has option oly to delete them
<?php
/**
* Plugin Name: [Smush] - Original Images
* Plugin URI: https://premium.wpmudev.org/
* Description: Displays all original images so they can be deleted. Requires Smush
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@rogercoathup
rogercoathup / reinstate-shipto-address.php
Last active November 22, 2021 01:47
Supports the purchaser entering the recipient address at checkout for a woocommerce-subscriptions-gifting (https://github.com/Prospress/woocommerce-subscriptions-gifting) gift.
<?php
add_action( 'woocommerce_checkout_subscription_created', 'maybe_reinstate_gifting_address', 99, 3 );
/**
* Ugly hack to reinstate the ship to address, if it's been removed by the gifting plugin
* Don't remove if it's an existing user though
* @param [type] $subscription [description]
* @param [type] $order [description]
* @param [type] $recurring_cart [description]
@PurpleBooth
PurpleBooth / README-Template.md
Last active December 16, 2025 09:47
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites