Skip to content

Instantly share code, notes, and snippets.

View chris-geelhoed's full-sized avatar

Chris Geelhoed chris-geelhoed

View GitHub Profile
@palicko
palicko / sticky-footer.css
Created December 14, 2016 20:40
Sticky footer with flexbox (works in IE11)
@miklb
miklb / functions.php
Created April 5, 2012 15:16
Add Pdf and Word Doc filtering to WordPress Media Library
/**
* add custom "mime types" (file supertypes)
* @param array $post_mime_types
* @return array
*/
function filterPostMimeTypes($post_mime_types) {
$post_mime_types['application/pdf'] = array('PDF', 'Manage PDFs', _n_noop('PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>'));
$post_mime_types['application/msword'] = array('Word Docs', 'Manage Word Docs', _n_noop('Word DOC <span class="count">(%s)</span>', 'Word Docs <span class="count">(%s)</span>'));
return $post_mime_types;
}