Add a sortable user Id column into WordPress Users table

Sometimes it is useful to find the user_id of each user you have in your WordPress site.  This is especially helpful if you have a multisite with a lots of users.  Something like this:


In order to have that kind of functionality,  you can add the following code in your theme’s functions.php.
If you have a multisite installation the ID column will be only displayed in the network users admin page and not in each subsite’s users admin table.



Nav menus administration. Open all metaboxes by default

When you have a multisite installation, it is possible that the bloggers you host. have trouble to create menus for their blog.  The default behavior of wordPress in wp-admin/nav-menus.php is to have hidden the posts, tags and formats metaboxes, which make the process of finding the things they want to include in the navigation menus more difficult. The following snippet opens by default these metaboxes in wp-admin/nav-menus.php.

Just paste the following in your /plugins/custom.php or /plugins/bp-custom.php file.