Skip to content

Instantly share code, notes, and snippets.

View slushman's full-sized avatar

Chris Wilcoxson slushman

View GitHub Profile
@slushman
slushman / one-column-dashboard
Created April 15, 2015 03:02
How to Set WordPress Dashboard to Use One Column
function screen_layout_columns( $columns ) {
$columns['dashboard'] = 1;
return $columns;
}
add_filter( 'screen_layout_columns', 'screen_layout_columns' );
@slushman
slushman / jquery-datepicker-wp-admin
Last active October 19, 2022 14:25
How to Add the jQuery UI Datepicker to the WordPress Admin
/**
* Adds the datepicker settings to the admin footer.
* Only loads on the plugin-name settings page
*/
function admin_footer() {
$screen = get_current_screen();
if ( $screen->id == 'settings_page_plugin-name' ) {
@slushman
slushman / simplemap-shortcode
Last active August 29, 2015 14:14
SimpleMap Shortcode
/**
* Basic shortcode
*/
[simplemap]
/**
* Hide the search result list
*
* @param bool true: hide the list
* false: show the list, this is the default