Skip to content

Instantly share code, notes, and snippets.

@seoagentur-hamburg
Created February 13, 2014 13:28
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 seoagentur-hamburg/8975023 to your computer and use it in GitHub Desktop.
Save seoagentur-hamburg/8975023 to your computer and use it in GitHub Desktop.
Bringt das einspaltige Dashboard wieder in WP 3.8 zurück.
<?php
/*
Module Name: Einspaltiges Dasboard
Description: Erstellt die Möglichkeit eines einspaltigen WP-Dashboards [Backend]
Author: Andreas Hecht
Author URI: http://hechtmediaarts.com
*/
/* Sicherheitsabfrage */
if ( !class_exists('Toolbox') ) {
die();
}
// force one-column dashboard
function shapeSpace_screen_layout_columns($columns) {
$columns['dashboard'] = 1;
return $columns;
}
add_filter('screen_layout_columns', 'shapeSpace_screen_layout_columns');
function shapeSpace_screen_layout_dashboard() { return 1; }
add_filter('get_user_option_screen_layout_dashboard', 'shapeSpace_screen_layout_dashboard');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment