Skip to content

Instantly share code, notes, and snippets.

@chipbennett
chipbennett / wptinymcecustomconfig
Created August 6, 2011 14:25
Customize WordPress TinyMCE Configuration
/*****************************************************************************************
* Customize TinyMCE Configuration
*******************************************************************************************/
// http://tinymce.moxiecode.com/wiki.php/Configuration
function nhcc_tinymce_config( $init ) {
// Change code cleanup/content filtering config
// Don't remove line breaks
@chipbennett
chipbennett / oenology_get_github_api_data
Created July 23, 2011 03:52
Function to return tabulated GitHub API commits and issues data for use in WordPress Theme settings pages
/**
* Get GitHub API Data
*
* Uses the GitHub API (v3) to get information
* regarding open or closed issues (bug reports)
* or commits, then outputs them in a table.
*
* Derived from code originally developed by
* Michael Fields (@_mfields):
* @link https://gist.github.com/1061846 Simple Github commit API shortcode for WordPress