Skip to content

Instantly share code, notes, and snippets.

@borisiceman
borisiceman / woocommerce-optimize-scripts.php
Created December 31, 2019 12:31 — forked from DevinWalker/woocommerce-optimize-scripts.php
unload woo, stay at shop,checkout.cart
/**
* Optimize WooCommerce Scripts
* Remove WooCommerce Generator tag, styles, and scripts from non WooCommerce pages.
*/
add_action( 'wp_enqueue_scripts', 'child_manage_woocommerce_styles', 99 );
function child_manage_woocommerce_styles() {
//remove generator meta tag
remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );
@borisiceman
borisiceman / boxstarter.ps1
Created November 7, 2018 08:35 — forked from rodtreweek/boxstarter.ps1
boxstarter gist
# Description: Boxstarter Script
# Author: Rod Treweek
# Last Updated: 2018-09-10
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt: