!!! For M1/M2 apple silicon see this comment:
For MacOS | Mojave | High Sierra
// check for clear-cart get param to clear the cart, append ?clear-cart to any site url to trigger this | |
add_action( 'init', 'woocommerce_clear_cart_url' ); | |
function woocommerce_clear_cart_url() { | |
if ( isset( $_GET['clear-cart'] ) ) { | |
global $woocommerce; | |
$woocommerce->cart->empty_cart(); | |
} | |
} |
<?php | |
/* | |
Plugin Name: Convert Custom Taxonomy to Custom Post Type | |
Plugin URI: N/A | |
Description: A plugin to convert a Custom Taxonomy to a Custom Post Type and transfer associated metadata. | |
Version: 0.1 | |
Author: Strap1 | |
Author URI: http:/www.hiphopinenglish.com | |
/** Convert Taxonomy '%name%' to CPT '%name%' **/ |
// Reorder Checkout Fields | |
add_filter('woocommerce_checkout_fields','reorder_woo_fields'); | |
function reorder_woo_fields($fields) { | |
$fields2['billing']['billing_email'] = $fields['billing']['billing_email']; | |
$fields2['billing']['billing_first_name'] = $fields['billing']['billing_first_name']; | |
$fields2['billing']['billing_last_name'] = $fields['billing']['billing_last_name']; | |
$fields2['billing']['billing_country'] = $fields['billing']['billing_country']; | |
$fields2['billing']['billing_address_1'] = $fields['billing']['billing_address_1']; | |
$fields2['billing']['billing_address_2'] = $fields['billing']['billing_address_2']; |
<# | |
Cleanup-windows-installer.ps1 | |
http://www.bryanvine.com/2015/06/powershell-script-cleaning-up.html | |
Bryan Vine | |
6/22/2015 | |
www.bryanvine.com | |
This script uses Heath Stewart's VB script to identify which files need to be saved and then removes everything else. |
!!! For M1/M2 apple silicon see this comment:
For MacOS | Mojave | High Sierra
This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root
element.
There are a couple of main reasons this is helpful:
See the Tailwind Plugins for more info on plugins.