Skip to content

Instantly share code, notes, and snippets.

@hazephase
hazephase / gist:a5721eeefb1cbe35f61ccf28c2d25d04
Created March 4, 2018 12:45 — forked from WillBrubaker/gist:dc691d9df80aa63fc9ac
Change the WooCommerce Bookings "Persons" label to something else
add_filter( 'booking_form_fields', 'wooninja_booking_form_fields' );
function wooninja_booking_form_fields( $fields ) {
$fields['wc_bookings_field_persons']['label'] = 'SOMETHING ELSE';
return $fields;
}
@hazephase
hazephase / asset-helpers.php
Created September 13, 2017 07:45 — forked from hellofromtonya/asset-helpers.php
Twenty Seventeen Theme - Better Version Control
<?php
/**
* Asset Loaders and Helpers for Twenty Seventeen Theme
*
* @since 1.0.0
* @author hellofromTonya
* @link https://KnowTheCode.io
* @license GNU-2.0+
*/
@hazephase
hazephase / cmb2-address.php
Created September 7, 2017 08:04 — forked from DevinWalker/cmb2-address.php
Plugin demonstrating CMB2 address field as repeatable
<?php
/*
* Plugin Name: CMB2 Custom Field Type - Address
* Description: Makes available an 'address' CMB2 Custom Field Type. Based on https://github.com/WebDevStudios/CMB2/wiki/Adding-your-own-field-types#example-4-multiple-inputs-one-field-lets-create-an-address-field
* Author: jtsternberg
* Author URI: http://dsgnwrks.pro
* Version: 0.1.0
*/
/**
@hazephase
hazephase / 0_reuse_code.js
Created April 30, 2014 15:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console