Skip to content

Instantly share code, notes, and snippets.


Chris Wilcoxson slushman

View GitHub Profile
slushman / Sublime Text Packages
Created Jan 13, 2016
List of Package for Sublime Text 3
View Sublime Text Packages
Package Control -
Tomorrow Color Schemes
slushman / Sublime Text 3 User Preferences
Created Jan 13, 2016
My Sublime Text 3 User Preferences
View Sublime Text 3 User Preferences
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
slushman / gist:454cc8b26c330727df13
Last active Dec 28, 2015
Customize the Featured Image labels
View gist:454cc8b26c330727df13
* Changes strings referencing Featured Images for a post type
* In this example, the post type in the filter name is "employee"
* and the new reference in the labels is "headshot".
* @see
* @param object $labels Current post type labels
* @return object Modified post type labels
slushman / open-current-submenu-toggle-on-hover.js
Last active Sep 8, 2015
Open Current SubMenu; Toggle on Hover
View open-current-submenu-toggle-on-hover.js
* WordPress menu
* Opens the current page's submenu. When hovering over another top-level
* menu item, it closes the open submenu and opens the other.
* Only operates if the current menu item is defined, so it won't do
* anything on pages that don't have a submenu or don't have a
* current menu item (ie. if you don't have a "Home" menu item and submenu,
* it won't do anything on the home page).
slushman / 0_reuse_code.js
Last active Aug 29, 2015
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
View a11y-checklist
"Accessibility is the degree to which a product, device, service, or environment is available to as many people as possible." - Cynthia Waddell
Four major disabilities addressed by a11y:
* Cognitive
* Write at a low reading level
* Make interactivity obvious, clear buttons, etc
* Vision
* Blind
* Colorblind
slushman /
Last active Apr 9, 2021
DCC Website Launch Checklist
slushman / add-class-to-wp-metabox
Last active Aug 29, 2015
Add a Class to a WordPress Metabox
View add-class-to-wp-metabox
* The simplistic way to add a custom class to a specific metabox
* @param array $classes The current classes on the metabox
* @return array The modified classes on the metabox
function add_metabox_classes( $classes = array() ) {
return array_push( $classes, sanitize_html_class( 'my-custom-class' ) );
slushman / wp-submit-button
Last active Aug 29, 2015
WordPress Submit Button
View wp-submit-button
* Default WordPress submit() parameters
* @param string $text changes the text on the button
* @param string $type determines the style of the button. WordPress styling options:
* primary - the default
* secondary
* delete
* custom - add your custom class for styling here!
* @param string $name sets the name attribute for the button, its "Submit" by default.
slushman / get_theme_mod-empty-check
Created Apr 16, 2015
get_theme_mod empty check
View get_theme_mod-empty-check
* Do this
if ( '' == get_theme_mod( 'something' ) ) { ... }
* Not this
if ( empty( get_theme_mod( 'something' ) ) ) { ... }