Last active
December 26, 2015 00:19
-
-
Save jeremyfelt/7062883 to your computer and use it in GitHub Desktop.
Hide inactive Jetpack modules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
.