Skip to content

Instantly share code, notes, and snippets.

@hazephase
hazephase / gist:a5721eeefb1cbe35f61ccf28c2d25d04
Created Mar 4, 2018 — forked from WillBrubaker/gist:dc691d9df80aa63fc9ac
Change the WooCommerce Bookings "Persons" label to something else
View gist:a5721eeefb1cbe35f61ccf28c2d25d04
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 Sep 13, 2017 — forked from hellofromtonya/asset-helpers.php
Twenty Seventeen Theme - Better Version Control
View asset-helpers.php
<?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 Sep 7, 2017 — forked from DevinWalker/cmb2-address.php
Plugin demonstrating CMB2 address field as repeatable
View cmb2-address.php
<?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 Apr 30, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console