Get back single-column dashboard in Latest WordPress

From WordPress 3.8 version came with new dashboard style. For Get back single-column dashboard in Latest WordPress, So you can use our code which can useful for every wordpress devloper.

Get back single-column dashboard in Latest WordPress

For getting back the single-column dashboard in WordPress 3.8, you need to add the following code in functions.php file.

// force one-column dashboard
function wpapi_single_screen_layout_columns($columns) {
$columns['dashboard'] = 1;
return $columns;
}
add_filter('screen_layout_columns', 'wpapi_single_screen_layout_columns');

function wpapi_single_screen_layout_dashboard() { return 1; }
add_filter('get_user_option_screen_layout_dashboard', 'wpapi_single_screen_layout_dashboard');
Get back single-column dashboard
Get back single-column dashboard

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.