Skip to content

Instantly share code, notes, and snippets.

View jessedmatlock's full-sized avatar
🏠
Working from home

Jesse Matlock jessedmatlock

🏠
Working from home
View GitHub Profile
@jessedmatlock
jessedmatlock / gw-gravity-forms-redirect-if-email-exists.php
Created April 21, 2021 17:35 — forked from spivurno/gw-gravity-forms-redirect-if-email-exists.php
Gravity Wiz // Gravity Forms // Redirect if Email Exists
<?php
/**
* Gravity Wiz // Gravity Forms // Redirect if Email Exists
*
* Redirect to a specified URL if the the submitted email address matches an existing user.
*
* Note: Does not work with AJAX-enabled forms.
*
* @version 0.1
* @author David Smith <david@gravitywiz.com>
@woogists
woogists / wc-min-order-amount.php
Last active November 18, 2022 22:30
Set a minimum order amount for checkout
/**
* Set a minimum order amount for checkout
*/
add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' );
add_action( 'woocommerce_before_cart' , 'wc_minimum_order_amount' );
function wc_minimum_order_amount() {
// Set this variable to specify a minimum order value
$minimum = 50;
@jessedmatlock
jessedmatlock / FirefoxResponsiveDesignCustomSizes
Last active August 29, 2015 14:03
Firefox Custom Reponsive Design View sizes
about:config
add a new String entry with the name:
devtools.responsiveUI.presets
And the value of (customize as you need):
[{
"name": "Small",