Skip to content

Instantly share code, notes, and snippets.

View BurlesonBrad's full-sized avatar
🎯
Focusing

Brad Griffin BurlesonBrad

🎯
Focusing
View GitHub Profile
<?php
/**
* Plugin Name: Tons Of Fun for Nick
* Plugin URI: https://yourmom.com
* Description: A Drop In Plugin That'll speed the sh_t outta your site. No options, just ACTIVE or INCACTIVE :-)
* Version: 1
* Author: Brad
* Author URI: https://yourmom.com
* Requires at least: 4.5
* Tested up to: 4.5
<?php
/*
Author: Hans2103
credit: Jim Westergren, Jeedo Aquino & Flynsarmy
File: index-with-redis.php
Updated: 2013-05-27
This is a redis caching system for Wordpress based on Redis connection using PHPRedis.
https://github.com/nicolasff/phpredis
@BurlesonBrad
BurlesonBrad / index-with-redis.php
Created April 30, 2016 02:52 — forked from JimWestergren/index-with-redis.php
Redis as a Frontend Cache for WordPress
<?php
/*
Author: Jim Westergren & Jeedo Aquino
File: index-with-redis.php
Updated: 2012-10-25
This is a redis caching system for wordpress.
see more here: www.jimwestergren.com/wordpress-with-redis-as-a-frontend-cache/
@BurlesonBrad
BurlesonBrad / optimize-woocommerce.php
Created June 13, 2016 16:58
Speed Up WooCommerce by Only Loading WooCommerce Assets on Pages that Contain WooCommerce
/**
* 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' ) );
<?php
/**
* Plugin Name: Woocommerce Vendors Bookings Management
* Description: Allows vendors to manage their bookings in the frontend
* Version: 1.0.0
* Author: Liam Bailey
* Author URI: http://webbyscots.com/
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
@BurlesonBrad
BurlesonBrad / .htaccess
Created July 19, 2016 21:37
For Katharina
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType text/js "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
@BurlesonBrad
BurlesonBrad / wc-hide-coupons-cart-checkout.php
Created July 22, 2016 17:59 — forked from maxrice/wc-hide-coupons-cart-checkout.php
WooCommerce - hide the coupon form on the cart or checkout page, but leave coupons enabled for use with plugins like Smart Coupons and URL Coupons
<?php
// hide coupon field on cart page
function hide_coupon_field_on_cart( $enabled ) {
if ( is_cart() ) {
$enabled = false;
}
return $enabled;
@BurlesonBrad
BurlesonBrad / per-product-redirect.php
Last active October 9, 2024 00:34
Per Product Redirect for EVERY WooCommerce Product https://woocamp.com
<?php /* <--------Careful! */
/**
* Plugin Name: Per product Redirect
* Description: Empowers WooCommerce Store owners to add a custom redirect page on add-to-cart for EVERY product
* Version: 1.0.0
* Author: Brad Griffin
* Author URI: https://woocamp.com
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
<?php
/**
* Plugin Name: Alyssa Gets to Change Her Text
* Plugin URI: https://bradgriffin.me
* Description: Engage Maverick | ENGAGE! Make a conversation with your customer and customize EVERY piece of Text!
* Version: 1
* Author: Brad
* Author URI: https://bradgriffin.me
* Requires at least: 4.6
* Tested up to: 4.6
@BurlesonBrad
BurlesonBrad / change-stock-text.php
Last active September 2, 2016 16:23
Change stock text ~ there's TWO of them (not just one!) https://bradgriffin.me
<?php
/**
* Plugin Name: Wayne Changes Text Field
* Plugin URI: https://bradgriffin.me
* Description: Changes the stock text - BOTH of them. Not just one!
* Version: 1
* Author: Brad
* Author URI: https://bradgriffin.me
* Requires at least: 4.6
* Tested up to: 4.6