Skip to content

Instantly share code, notes, and snippets.

View clifgriffin's full-sized avatar

Clifton Griffin clifgriffin

View GitHub Profile
<?php
add_filter('shopp_order_event_emails','disable_customer_order_notifications');
function disable_customer_order_notifications ($messages) {
print_r($messages);
unset($messages['customer']);
print_r($messages); die;
return $messages;
}
@clifgriffin
clifgriffin / 0_reuse_code.js
Created June 2, 2014 12:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@clifgriffin
clifgriffin / hide-shipping-from-delivery-methods-basesd-on-product-category.php In CheckoutWC's Delivery method, hide the Shipping option completely when at least one product in the cart is assigned to a specific category.
<?php
/*
* In CheckoutWC's Delivery method, hide the Shipping option completely when at least
* one product in the cart is assigned to a specific category.
*
* @author Obi Juan <hola@obijuan.dev>
* @link https://obijuan.dev
*/
/*