Skip to content

Instantly share code, notes, and snippets.

@ramseyp
ramseyp / 0_reuse_code.js
Created Dec 19, 2013
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
@ramseyp
ramseyp / custom-menu-metabox-field.php
Created Apr 17, 2012
Allow choosing of a custom menu and saving that value as postmeta
View custom-menu-metabox-field.php
<?php
/**
* Show custom menus as select list
* For use with CMB for WP: https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress/wiki/Adding-your-own-field-types
* @author Travis Northcutt
* @link https://gist.github.com/2284508
*
* @param array $field
* @param string $meta