Skip to content

Instantly share code, notes, and snippets.

View coreymcollins's full-sized avatar

Corey M Collins coreymcollins

View GitHub Profile
@coreymcollins
coreymcollins / wds-javascript-style.js
Created May 19, 2016 20:37 — forked from gregrickaby/wdsjQuery.js
WDS Javascript Style
/**
* Foo Script.
*/
window.Foo_Object = {};
( function( window, $, that ) {
// Private variable.
var fooVariable = 'foo';
// Constructor.
<?php
/**
* Display testimonials
*/
function wds_meltwater_testimonials( $type = '' ) {
// Grab the type set for this layout
$type = esc_html( get_post_meta( get_the_ID(), '_wds_meltwater_type_select', true ) );
<?php
/**
* Add metabox for Life at Meltwater layout
*/
$meta_boxes['wds_meltwater_attached_layout_what_to_expect'] = array(
'id' => 'what-to-expect',
'title' => __( 'What to Expect Layout', 'meltwater' ),
'object_types' => array( 'layout' ),
'context' => 'normal',
'priority' => 'low',