Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Last active December 2, 2015 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2ndkauboy/d5bf8db45c6f4bde6bac to your computer and use it in GitHub Desktop.
Save 2ndkauboy/d5bf8db45c6f4bde6bac to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Admin Dashboard Columns
* Description: Reactivates the option to set the number of admin dashboard columns
* Version: 1.0.0
* Author: Bernhard Kau
* Author URI: https://kau-boys.de
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0
*/
/*
This is a solution posted on WordPress Stackexchange by @ocean90 as a plugin
http://wordpress.stackexchange.com/questions/126301/wordpress-3-8-dashboard-1-column-screen-options/126307#126307
*/
function wpse126301_dashboard_columns() {
add_screen_option(
'layout_columns',
array(
'max' => 4,
'default' => 1
)
);
}
add_action( 'admin_head-index.php', 'wpse126301_dashboard_columns' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment