Skip to content

Instantly share code, notes, and snippets.

View conschneider's full-sized avatar
Relax. Nothing is under control.

Con Schneider conschneider

Relax. Nothing is under control.
View GitHub Profile
conschneider / wp-query-ref.php
Created December 31, 2016 21:15 — forked from luetkemj/wp-query-ref.php
WP: Query $args
View wp-query-ref.php
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
$args = array(
conschneider / wc-hide-coupons-cart-checkout.php
Created January 14, 2017 16:35 — 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
View wc-hide-coupons-cart-checkout.php
// hide coupon field on cart page
function hide_coupon_field_on_cart( $enabled ) {
if ( is_cart() ) {
$enabled = false;
return $enabled;
conschneider / woocommerce-simple-or-variable.php
Last active January 22, 2017 17:09 — forked from patrickgilmour/woocommerce-simple-or-variable.php
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
//get product right first to access methods of WC_Product()
$product = wc_get_product( get_the_ID() );
conschneider / Woocommerce Bookings Dropdown + handles Resources
Created February 20, 2017 15:55 — forked from LiamBailey/Woocommerce Bookings Dropdown + handles Resources
Changes date-picker fields for dropdown of available dates, and refreshes dropdown if resource dropdown is changed
View Woocommerce Bookings Dropdown + handles Resources
Plugin Name: Woocommerce Bookings Dropdown
Description: Swaps the date picker for a dropdown of dates
Version: 1.0.0
Author: Webby Scots
Author URI:
conschneider /
Last active June 15, 2017 15:43 — forked from tatemz/
A quick way to get a WordPress installation up and running with Docker. Mounts the WordPress root folder as well for exchange between host and Docker container.
mkdir wordpress-site && cd wordpress-site
touch docker-compose.yml
cat > docker-compose.yml <<EOL
version: "2"
View Has weird right-to-left characters.txt
conschneider / edit-woocommerce-checkout-template.php
Created June 27, 2017 10:15 — forked from bekarice/edit-woocommerce-checkout-template.php
Add content and notices to the WooCommerce checkout - sample code
View edit-woocommerce-checkout-template.php
* Each of these samples can be used - note that you should pick one rather than add them all.
* How to use WC notices:
* Tutorial:
* Add a content block after all notices, such as the login and coupon notices.
conschneider /
Created July 18, 2017 09:00 — forked from technosailor/
Updates VVV MySQL 5.5 to 5.6 -- Ubuntu 14.04
# Usage: ./
# Backup of all databases... JUST IN CASE
mysqldump --all-databases --single-transaction --events --user=root --password > ~/all_database_backup.sql
# Remove MySQL 5.5
sudo apt-get remove mysql-server
sudo apt-get autoremove
conschneider /
Created August 3, 2017 19:17 — forked from johnbillion/
WordPress Emails

WordPress Emails

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

This is accurate as of WordPress 4.8, and includes some upcoming changes in WordPress 4.9.

There are a few TODOs left. Please bear with me.

conschneider / gist:f795345aa197aac0f7061c61525287f8
Created July 4, 2017 08:23
WooCommerce Product Add Ons - How to customise "Grand total" and "Options total"
View gist:f795345aa197aac0f7061c61525287f8
/*Options Total*/
.product-addon-totals dt:nth-child(1) { color:red;}
/*Options Total Sum*/
.product-addon-totals dd:nth-child(2) { color:red;}
/*Grand Total*/
.product-addon-totals dt:nth-child(3) { color:blue;}
/*Grand Total Sum*/