Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can i force wp-admin to use 2 column layout via plugin?

share|improve this question

closed as unclear what you're asking by toscho Oct 24 '13 at 13:40

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Please read How to Ask. This is not a good question. –  toscho Oct 24 '13 at 13:39
add comment

1 Answer 1

This should help:

function so_screen_layout_columns( $columns ) {
    $columns['dashboard'] = 2;
    return $columns;
}
add_filter( 'screen_layout_columns', 'so_screen_layout_columns' );
function so_screen_layout_dashboard() {
    return 2;
}
add_filter( 'get_user_option_screen_layout_dashboard', 'so_screen_layout_dashboard' );

On dashboard screen options it will show 1 or 2 columns, after clicking 1 column after refresh will still be 2 columns. You can change to whatever number you want

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.