Skip to content

Instantly share code, notes, and snippets.

@deyvi-james
deyvi-james / diable_wc_shipping_rates_cache.php
Created January 14, 2018 22:06 — forked from chuckmo/diable_wc_shipping_rates_cache.php
Disable WooCommerce's Shipping Rates Cache
// essentially disable WooCommerce's shipping rates cache
add_filter('woocommerce_checkout_update_order_review', 'clear_wc_shipping_rates_cache');
function clear_wc_shipping_rates_cache(){
global $wpdb;
$wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE '%wc_ship%'");
}
@deyvi-james
deyvi-james / .htaccess
Created May 25, 2017 02:17 — forked from vluzrmos/.htaccess
Laravel 4.2 HTACCESS
# ----------------------------------------------------------------------
# /PUBLIC folder .htaccess
# ----------------------------------------------------------------------
# This .htaccess file is recommended
# to be placed at root/public folder
# of your Laravel powered application
# ----------------------------------------------------------------------
# This file works with Laravel 3 and 4
# ----------------------------------------------------------------------
# Turning on the rewrite engine is necessary for the following rules and
@deyvi-james
deyvi-james / app.js
Created February 10, 2016 05:25 — forked from rewonc/app.js
AngularJS/PhoneGap/Ionic: filter to convert links for opening in separate mobile window
//*
//* See the JS Fiddle: http://jsfiddle.net/sxcjmoj5/3/
//*
//*
// make sure ngSanitize module is installed:
// https://docs.angularjs.org/api/ngSanitize
//
// To convert links from plaintext, you must use the linky filter which is included with ngSanitize
// https://docs.angularjs.org/api/ngSanitize/filter/linky
//