A collection of functions to clean up WordPress front-end and back-end to make it easier for editors to work and for you to look at the source code. Hiding content is also a good thing to do to limit the possibilities for your clients to destroy your beautiful site.
Hide items and sub-items in the admin menu. Also known as the Toolbar.
Clears out generated unwanted stuff from the wp_head hook. Such as feeds and WordPress version.
Remove all or specific contextual tabs with help and information about how to use the WordPress interface.
Remove dashboard metaboxes or even the whole dashboard itself.
Disable the built in emojis (since 4.2 WordPress) that loads large JavaScript, CSS and image files.
De-registers the WordPress stock jQuery script.
Remove notifications about core/plugin updates.
Remove specific metaboxes from post-types.
Remove fields from the user profile page, like contact information or the Biographical Info section.
Remove default roles. Remove capabilities to specific roles or users.
Remove default widgets.
Change settings and clean up the TinyMCE WYSIWYG.
A pretty personal collection of good, fun and just necessary functions to make WordPress development easier.
Don’t just include the files in your project and be done. Look at the content, update the options and see what works for you!
You should probably keep some things visible for you or a super admin. Check the user role like this:
if ( ! current_user_can( 'administrator' ) ) {
// Clean it up!
}
Feel free to suggest anything you see missing or want fixed!