Last active
December 2, 2015 21:57
-
-
Save 2ndkauboy/d5bf8db45c6f4bde6bac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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