├── .gitmodules ├── changelog.txt ├── languages └── dashboard-widgets-order.pot ├── README.md └── dashboard-widgets-order.php /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "dash-notice"] 2 | path = dash-notice 3 | url = git@bitbucket.org:incsub/wpmudev-dashboard-notification.git 4 | branch = master 5 | -------------------------------------------------------------------------------- /changelog.txt: -------------------------------------------------------------------------------- 1 | Plugin Name: Dashboard Widgets Order 2 | Author: S H Mohanjith (Incsub), Andrew Billits (Incsub) 3 | 4 | Change Log: 5 | ---------------------------------------------------------------------- 6 | ---------------------------------------------------------------------- 7 | 8 | 2.0.4.2 - 04/20/2013 9 | --------------------------------------------------------------------- 10 | - Infinite column capability 11 | 12 | 2.0.4.1 - 12/17/2013 13 | ---------------------------------------------------------------------- 14 | - WordPress 3.8 compatibility 15 | 16 | 2.0.4 - 01/08/2011 17 | ---------------------------------------------------------------------- 18 | - 3.1+ compatibility update 19 | 20 | 2.0.3 - 10/10/2010 21 | ---------------------------------------------------------------------- 22 | - 3.0+ compatibility update 23 | - changed the way the hash is stored in the database 24 | 25 | 2.0.2 - 10/13/2009 26 | ---------------------------------------------------------------------- 27 | - 2.8+ compatibility update 28 | 29 | 2.0.1 - 06/05/2009 30 | ---------------------------------------------------------------------- 31 | - enforce widget order update oncer per user 32 | 33 | 2.0.0 - 05/17/2009 34 | ---------------------------------------------------------------------- 35 | - 2.7+ compatibility release 36 | 37 | 1.0.0 - 05/22/2008 38 | ---------------------------------------------------------------------- 39 | - Initial Release. 40 | -------------------------------------------------------------------------------- /languages/dashboard-widgets-order.pot: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2013 Dashboard Widgets Order 2 | # This file is distributed under the same license as the Dashboard Widgets Order package. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: Dashboard Widgets Order 2.0.4\n" 6 | "Report-Msgid-Bugs-To: http://wordpress.org/tag/dashboard-widgets-order\n" 7 | "POT-Creation-Date: 2013-10-14 20:44:10+00:00\n" 8 | "MIME-Version: 1.0\n" 9 | "Content-Type: text/plain; charset=UTF-8\n" 10 | "Content-Transfer-Encoding: 8bit\n" 11 | "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n" 12 | "Last-Translator: FULL NAME \n" 13 | "Language-Team: LANGUAGE \n" 14 | 15 | #: dashboard-widgets-order.php:101 16 | msgid "" 17 | "Please install the latest version of our free " 19 | "Update Notifications plugin which helps you stay up-to-date with the " 20 | "most stable, secure versions of WPMU DEV themes and plugins. More information »" 23 | msgstr "" 24 | 25 | #. Plugin Name of the plugin/theme 26 | msgid "Dashboard Widgets Order" 27 | msgstr "" 28 | 29 | #. Plugin URI of the plugin/theme 30 | msgid "http://premium.wpmudev.org/project/dashboard-widget-order" 31 | msgstr "" 32 | 33 | #. Description of the plugin/theme 34 | msgid "" 35 | "Easily customize the order of widgets on all of your users dashboards... " 36 | "giving more prominence to the widgets *you* want them to see and use" 37 | msgstr "" 38 | 39 | #. Author of the plugin/theme 40 | msgid "S H Mohanjith (Incsub), Andrew Billits (Incsub)" 41 | msgstr "" 42 | 43 | #. Author URI of the plugin/theme 44 | msgid "http://premium.wpmudev.org" 45 | msgstr "" 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dashboard Widgets Order 2 | 3 | 4 | **INACTIVE NOTICE: This plugin is unsupported by WPMUDEV, we've published it here for those technical types who might want to fork and maintain it for their needs.** 5 | 6 | ## Translations 7 | 8 | Translation files can be found at https://github.com/wpmudev/translations 9 | 10 | ## Usage 11 | 12 | Dashboard Widget Order lets you determine the default position of the dashboard widgets across a Multisite network. 13 | 14 | Quickly arrange both custom and core widgets for complete control over what new users experience when logging on to your network for the first time. 15 | 16 | ![Give users a better start from the fully customizable dashboard.](https://premium.wpmudev.org/wp-content/uploads/2008/08/order-wigets.jpg) 17 | 18 | Give users a better start from the fully customizable dashboard. 19 | 20 | ### Simple Protected Control 21 | 22 | Creating a custom default widget order is simple. Quickly reposition widgets using copy and paste code elements, save and import. 23 | 24 | No confusing configuration panels to mess with. Adjust widgets to start the way you like it, upload and forget it. 25 | 26 | ## Usage 27 | 28 | ### To Get Started: 29 | 30 | Start by reading [Installing Plugins](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/) section in our comprehensive [WordPress and WordPress Multisite Manual](https://wpmudev.com/docs/using-wordpress/wordpress-multisite/) if you are new to WordPress. 31 | 32 | ### To Use: 33 | 34 | 1.  Download the plugin file 35 | 36 | 2.  Unzip the file into a folder on your hard drive 37 | 38 | 3.  Open up the file dashboard-widget-order.php in your favorite text editor 39 | 40 | 4.  Customize the order of widgets like so: 41 | 42 | ![change the order of widgets](https://premium.wpmudev.org/wp-content/uploads/2010/03/widgetorders.png) 43 | 44 | 5.  Upload **/dashboard-widgets-order/** folder to **/wp-content/plugins/** folder on your site 45 | 46 | 6.  Visit **Network Admin -> Plugins** and **Network Activate** it there. 47 | -------------------------------------------------------------------------------- /dashboard-widgets-order.php: -------------------------------------------------------------------------------- 1 | array(), 'core' => array(), 'default' => array(), 'low' => array()); 36 | $dashboard_widgets_order['side'] = array('high' => array(), 'core' => array(), 'default' => array(), 'low' => array()); 37 | $dashboard_widgets_order['column3'] = array('high' => array(), 'core' => array(), 'default' => array(), 'low' => array()); 38 | $dashboard_widgets_order['column4'] = array('high' => array(), 'core' => array(), 'default' => array(), 'low' => array()); 39 | 40 | //------------------------------------------------------------------------// 41 | //---Config---------------------------------------------------------------// 42 | //------------------------------------------------------------------------// 43 | // change the order of the widgets here 44 | $dashboard_widgets_order['normal']['core'][] = 'dashboard_right_now'; 45 | $dashboard_widgets_order['normal']['core'][] = 'dashboard_activity'; 46 | $dashboard_widgets_order['normal']['default'][] = 'dashboard_incoming_links'; 47 | 48 | $dashboard_widgets_order['side']['core'][] = 'dashboard_quick_press'; 49 | $dashboard_widgets_order['side']['default'][] = 'dashboard_primary'; 50 | 51 | $dashboard_widgets_order['column3']['high'][] = 'dashboard_secondary'; 52 | 53 | $dashboard_widgets_order['column4']['high'][] = 'dashboard_plugins'; 54 | // Change this if you update the widget order and want all users to have 55 | // the new order instead of just new users. 56 | // Note that this will overwrite the custom widget order users have 57 | // configured. 58 | $dashboard_widgets_order_hash = 'm9c0u203b9u0338u10zxnm1lm'; 59 | 60 | //------------------------------------------------------------------------// 61 | //---Hook-----------------------------------------------------------------// 62 | //------------------------------------------------------------------------// 63 | add_action('init', 'dashboard_widgets_order'); 64 | //------------------------------------------------------------------------// 65 | //---Functions------------------------------------------------------------// 66 | //------------------------------------------------------------------------// 67 | 68 | function dashboard_widgets_order() { 69 | global $wpdb, $user_ID, $dashboard_widgets_order, $dashboard_widgets_order, $dashboard_widgets_order_hash, $wp_meta_boxes; 70 | 71 | if ( !is_multisite() ) 72 | exit( 'The Dashboard Widget Order plugin is only compatible with WordPress Multisite.' ); 73 | 74 | load_plugin_textdomain('dashboard_widgets_order', false, dirname(plugin_basename(__FILE__)).'/languages'); 75 | 76 | if ( !empty( $user_ID ) ) { 77 | $dashboard_widget_order_updated = get_user_option('meta-box-order_dashboard_updated', $user_ID); 78 | 79 | if ( $dashboard_widget_order_updated != $dashboard_widgets_order_hash ) { 80 | 81 | $dashboard_widget_order = array(); 82 | 83 | foreach ( $dashboard_widgets_order as $location => $sidebar ) { 84 | 85 | if (!isset($dashboard_widget_order[$location])) { 86 | $dashboard_widget_order[$location] = array(); 87 | } 88 | 89 | foreach (array('high', 'core', 'default', 'low') as $priority) { 90 | if (count($sidebar[$priority]) > 0) { 91 | $dashboard_widget_order[$location][] = join(',', $sidebar[$priority]); 92 | } 93 | } 94 | $dashboard_widget_order[$location] = join(',', $dashboard_widget_order[$location]); 95 | } 96 | 97 | update_user_option($user_ID, 'meta-box-order_dashboard', $dashboard_widget_order, true); 98 | update_user_option($user_ID, 'meta-box-order_dashboard_updated', $dashboard_widgets_order_hash, true); 99 | } 100 | } 101 | } 102 | --------------------------------------------------------------------------------