I hereby claim:
- I am bryan-snyder on github.
- I am brockvond (https://keybase.io/brockvond) on keybase.
- I have a public key ASD1cYazldhPDj3sAMKwsfh2W265jVhNleP23tqvCqG4mwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Setup Variables | |
DBNAME=mydatabase | |
DBUSER=databaseuser | |
DBPASS=dnpass | |
DBHOST=localhost | |
DBPREFIX=9239jej9md_ | |
URL=http://urlofsite.com |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
@import compass | |
$icons: sprite-map("icons/*.png") | |
$icons-hd: sprite-map("icons-hd/*.png") | |
i | |
background: $icons | |
display: inline-block | |
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
background: $icons-hd |
//remove this dumb shit and make PO field not required | |
//lol $pooorder | |
public function validate_fields () { | |
$poorder = $this->get_post( 'po_number_field' ); | |
if( ! $poorder ) { | |
if ( function_exists ( 'wc_add_notice' ) ) { | |
// Replace this old ass f'in $woocommerce_add_error() function. | |
wc_add_notice ( __ ( 'Please enter your PO Number.', 'woocommerce-gateway-purchase-order' ), 'error' ); | |
} else { |
/* To use: | |
1. Add this snippet to your theme's functions.php file | |
2. Change the meta key names in the snippet | |
3. Create a custom field in the order post - e.g. key = "Tracking Code" value = abcdefg | |
4. When next updating the status, or during any other event which emails the user, they will see this field in their email | |
*/ | |
add_filter('woocommerce_email_order_meta_keys', 'my_custom_order_meta_keys'); | |
function my_custom_order_meta_keys( $keys ) { | |
$keys[] = 'Tracking Code'; // This will look for a custom field called 'Tracking Code' and add it to emails |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition: