Skip to content

Instantly share code, notes, and snippets.


Andrew AndrewSepic

View GitHub Profile
About2git / archive-books.php
Last active Nov 17, 2020 — forked from srikat/archive-books.php
Single and Archive templates for Custom Post Type in Genesis
View archive-books.php
//* Remove breadcrumbs
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
//* Force full width content
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
//* Remove entry meta in entry header
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
patrickgilmour / woocommerce-simple-or-variable.php
Created Jun 27, 2014
WooCommerce conditional to test if a Product is Simple or Variable.
View woocommerce-simple-or-variable.php
* Is a WooCommerce Product Simple or Variable
* see
if( $product->is_type( 'simple' ) ){
// a simple product
djp424 / wp-config-mutisite-debug.php
Created Oct 20, 2014
How to turn WordPress Debug on for a single site in a MultiSite Install. From put this in wp-config.php
View wp-config-mutisite-debug.php
if ($_SERVER['HTTP_HOST']=='')
define('WP_DEBUG', true);
define('WP_DEBUG', false);
woogists / wc-min-order-amount.php
Last active Aug 19, 2021
Set a minimum order amount for checkout
View wc-min-order-amount.php
* 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;