Skip to content

Instantly share code, notes, and snippets.

@jeremyfelt
Last active December 26, 2015 00:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyfelt/7062883 to your computer and use it in GitHub Desktop.
Save jeremyfelt/7062883 to your computer and use it in GitHub Desktop.
Hide inactive Jetpack modules
<?php
/*
Plugin Name: Hide Inactive Jetpack Modules
Plugin URI: https://gist.github.com/jeremyfelt/7062883
Description: Hides Jetpack modules that are marked as inactive, providing for a shorter list.
Version: 0.1
Author: Jeremy Felt
Author URI: http://jeremyfelt.com
License: GPL2
*/
add_action( 'admin_print_styles-toplevel_page_jetpack', 'hijm_admin_style', 999 );
function hijm_admin_style() {
echo '<!-- Hide inactive Jetpack modules --><style>.jetpack-inactive { display: none; }</style>';
}
@jeremyfelt
Copy link
Author

Vaultpress doesn't have an option to deactivate as it's more of an advertising blurb (I think). If you'd like to hide that as well, just add , #vaultpress to .jetpack-inactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment