Created
February 13, 2014 13:28
-
-
Save seoagentur-hamburg/8975023 to your computer and use it in GitHub Desktop.
Bringt das einspaltige Dashboard wieder in WP 3.8 zurück.
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 | |
/* | |
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