Forked from ParhamG/blacklist_jetpack_modules.php
Last active
August 29, 2015 14:09
-
-
Save MarcWoodyard/f7f2a38dd54e223793b1 to your computer and use it in GitHub Desktop.
This file contains 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: Blacklist Jetpack Modules | |
Plugin URI: https://gist.github.com/ParhamG/6494979 | |
Description: Blacklist Jetpack modules. | |
Author: Parham Ghaffarian | |
Author URI: http://parh.am | |
Version: 0.1.3.1 | |
*/ | |
function blacklist_jetpack_modules( $modules ){ | |
$jp_mods_to_disable = array( | |
// 'shortcodes', | |
// 'widget-visibility', | |
// 'contact-form', | |
// 'shortlinks', | |
// 'infinite-scroll', | |
// 'wpcc', | |
// 'tiled-gallery', | |
// 'json-api', | |
// 'publicize', | |
// 'vaultpress', | |
// 'custom-css', | |
// 'post-by-email', | |
// 'widgets', | |
// 'comments', | |
// 'minileven', | |
// 'latex', | |
// 'gravatar-hovercards', | |
// 'enhanced-distribution', | |
// 'notes', | |
// 'subscriptions', | |
// 'stats', | |
// 'after-the-deadline', | |
// 'carousel', | |
// 'photon', | |
// 'sharedaddy', | |
// 'omnisearch', | |
// 'mobile-push', | |
// 'likes', | |
// 'videopress', | |
// 'gplus-authorship', | |
// 'sso', | |
// 'monitor', | |
// 'markdown', | |
// 'verification-tools', | |
// 'related-posts', | |
// 'custom-content-types', | |
); | |
foreach ( $jp_mods_to_disable as $mod ) { | |
if ( isset( $modules[$mod] ) ) { | |
unset( $modules[$mod] ); | |
} | |
} | |
return $modules; | |
} | |
add_filter( 'jetpack_get_available_modules', 'blacklist_jetpack_modules' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment