Strict Standards: Non-static method Authenticate::GetFromUser() should not be called statically, assuming $this from incompatible context in /srv/http/codedump.nl/public_html/include/class-website.php on line 201
Strict Standards: Non-static method Authenticate::Check() should not be called statically in /srv/http/codedump.nl/public_html/show.php on line 51
Strict Standards: Non-static method Authenticate::GetFromSelf() should not be called statically, assuming $this from incompatible context in /srv/http/codedump.nl/public_html/include/class-website.php on line 687
Strict Standards: Non-static method Authenticate::Check() should not be called statically, assuming $this from incompatible context in /srv/http/codedump.nl/public_html/include/class-authenticate.php on line 172

Unieke id: 950485
Onder naam: Reorder dashboard widgets
Scripttaal : PHP
Datum: 2013-01-20
Groote: 1KB
Gebruiker: Anoniem
Bekeken: 26x
function sort_dashboard_widgets() {
// Global the $wp_meta_boxes variable (this will allow us to alter the array)
global $wp_meta_boxes;
// Then unset everything in the array
unset($wp_meta_boxes['dashboard']['normal']['core']);
unset($wp_meta_boxes['dashboard']['side']['core']);
// Add widgets to left column
add_meta_box('dashboard_right_now', __('Right Now'), 'wp_dashboard_right_now', 'dashboard', 'normal', 'core');
add_meta_box('dashboard_recent_comments', __('Recent Comments'), 'wp_dashboard_recent_comments', 'dashboard', 'normal', 'core');
// Add widgets to right column
add_meta_box('dashboard_primary', 'Meteen aan de slag', 'how_tos_feed', 'dashboard', 'side', 'core');
add_meta_box('dashboard_quick_press', __('QuickPress'), 'wp_dashboard_quick_press', 'dashboard', 'side', 'core');
add_meta_box('dashboard_recent_drafts', __('Recent Drafts'), 'wp_dashboard_recent_drafts', 'dashboard', 'side', 'core');
}
add_action('wp_dashboard_setup', 'sort_dashboard_widgets');