Skip to content

Instantly share code, notes, and snippets.

@slushman
Created April 15, 2015 03:02
Show Gist options
  • Save slushman/dafa494f9d76ce4252b5 to your computer and use it in GitHub Desktop.
Save slushman/dafa494f9d76ce4252b5 to your computer and use it in GitHub Desktop.
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' );
function screen_layout_dashboard() {
return 1;
}
add_filter( 'get_user_option_screen_layout_dashboard', 'screen_layout_dashboard' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment