Skip to content

Instantly share code, notes, and snippets.

@johnmorris
Last active January 1, 2016 08:38
Show Gist options
  • Save johnmorris/8119109 to your computer and use it in GitHub Desktop.
Save johnmorris/8119109 to your computer and use it in GitHub Desktop.
Force a single (2, 3, 4) column layout in WordPress 3.8
function jmo_screen_layout_columns($columns) {
$columns['dashboard'] = 2;
return $columns;
}
add_filter('screen_layout_columns', 'jmo_screen_layout_columns');
function jmo_screen_layout_dashboard() {
return 2;
}
add_filter('get_user_option_screen_layout_dashboard', 'jmo_screen_layout_dashboard');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment