Customize the list of modules available in Jetpack

24 thoughts on “Customize the list of modules available in Jetpack”

  1. All I can say is WOW!!! Thanks for this. I love using Jetpack, but I always hate having to connect the site i am working on and then having to go through the entire list of components and deactivate all the ones I didn’t need. I think that maybe this is something that should be added to the plugin by default. You know, something like a settings page where the user can “set up” Jetpack by selecting which modules they want to use.

    If a particular module isnt selected to be used, then it wont appear in the list of modules. If a particular module is selected for use, then it appears like above, but not activated yet. The user would have to go in and activate it. Just a thought.

    1. There’s certainly the hooks in place (as Jeremy pointed out above) to let a third-party plugin further control this — but I don’t think it’s something that necessarily has a place in Jetpack itself. In keeping with the core WordPress philosophy of decisions over options, we don’t want to overly complicate the core UI by adding multiple layers of enabling or disabling modules.

      But as it’s a need you seem to have, as I mentioned, it’s certainly feasible as an add-on plugin. I’d love to see you build it! :)

  2. I second the WOW comment!!! One question, How do we know what to replace the “jeherve” with in the above code examples? Is that your account name? Thanks!

  3. Thank you Jeremy! That’s just what we (a lot of us I guess…) need sometimes in our (client) work. Thank you for posting and documenting it. Maybe you know that I am not the greatest fan of Jetpack around, but posts like this and such documentation really raises my respect for Jetpack and seems to begin changing my mind a bit.

    What I always loved about Jetpack: that you the team behind it really cares – no doubt about that! :)
    Keep on rocking!

    Dave from Germany :)

  4. I have avoided Jetpack in the past but with these hints will have to revisit it. Although I do agree with @Thomas and an admin interface would be very useful.

  5. How does one “Look under the hood” and why can’t jetpack come with these options in the settings page? The auto enabled plugins that come with Jetpack are a BIG waste of time and can conflict with other plugins already installed. I always install Manual Control for Jetpack to control the worst of its bad behaviour. Some of the Jetpack modules are great, but this plugin suite has a long way to go before it becomes truly user friendly.

    1. How does one “Look under the hood”

      Since Jetpack is open source, you can check the code source in the plugin repository here.

      why can’t jetpack come with these options in the settings page?

      When developing the Jetpack plugin, we try to respect WordPress’ core philosophy as much as possible. An important principle of WordPress is Decisions, not Options; you can read more about it here. However, and as I demonstrated in this post, there are many different ways to customize Jetpack’s default behaviour to fit your needs. The Manual Control plugin is another good example.

      The auto enabled plugins that come with Jetpack can conflict with other plugins already installed

      If you find bugs or conflicts with other plugins, feel free to contact us to let us know about it. We’ll be happy to look into it!

  6. Your thoughtful reply and actions may change my mind about Jetpack which I was absolutely going to drop from my next project to avoid bloat. I can’t allow plugins that turn on new untested features. Very cool work and very cool information. Coming from a team who’s plugin checks on every page load to see if it is freaking Xmas it is good word.

    1. That’s correct. My bad, I forgot that this filter was only added a few weeks ago, and has not been released yet. It will be part of Jetpack 2.6, that should be released later today.

      Thanks for the reminder! I guess it’s been too long since the last Jetpack release! :)

  7. I have Jetpack version 2.5 and in the Carousel, that small “X” in upper left is what I want to change. However, what module do I open to edit it? I want to add this:
    close_hint = $(‘Close Slideshow’)
    But I’m looking at that warning which says “Making changes to active plugins is not recommended . . . ” Will this discombobulate my efforts? If anyone can assist, please advise….thank you….
    PS: I was able to delete the “comments” box completely, with a simple bit of code under all images and did it in APPEARANCE>EDIT CSS so anyone wanting that spicifc line of code, please advise. Any help on enlarging the “X” would be appreciated. . . . .

  8. Jeremy, I tried your unset example above to try to disable photon, and it removes it from the list of available modules, but it doesn’t doable it. What could I be doing wrong?

    I am basically trying to disable photon while uploading an image to Buddypress groups (as it breaks the ability to edit the images).. but I can’t even get your instructions above to even disable photon. I only want to disable it periodically when uploading and editing an images, so the filter will be very useful to me.



    1. A few things to note here:

      • The unset example above hooks into the jetpack_get_available_modules filter: it only changes the list of modules available to be activated. It’s consequently best used for new installations of Jetpack, or plugin updates with new modules. This filter doesn’t deactivate modules, as you wouldn’t want to deactivate a module that might already be in use. To force the deactivation of a module, you can use a code like this one:
      • When you want to deactivate a specific module from time to time, it might be best not to use any custom code, and use the Deactivate button in the Jetpack menu to deactivate the Photon module, as explained here:
      • It seems you’d like Photon not to be applied to specific images in your BuddyPress theme. Deactivating and reactivating Photon won’t help you there. Instead, you’ll need to ask Photon to ignore specific images, as explained in this tutorial:

      If that doesn’t help, do not hesitate to post more details about your issue in the support forums. I’ll be happy to take a closer look at it after the holidays!

      1. Thanks Jeremy, I appreciate your response and I’ll definitely make further responses over at the WordPress Support forums.

        Thanks, and have a happy new year!


Comments are closed.