You may have code that relies on certain JetPack functions. If so, there’s a simple way to check if the module you need is enabled:
if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) : endif;
Here’s some popular module names you might be looking for:
- carousel
- comments
- contact-form
- custom-css
- enhanced-distribution
- gplus-authorship
- gravatar-hovercards
- infinite-scroll
- json-api
- latex
- likes
- markdown
- minileven
- monitor
- notes
- omnisearch
- photon
- post-by-email
- publicize
- related-posts
- sharedaddy
- shortcodes
- shortlinks
- sso
- stats
- subscriptions
- tiled-gallery
- vaultpress
- videopress
- widget-visibility
- widgets
This post was edited and updated when JetPack introduced the is_module_active function.