Unplug Jetpack: Use Jetpack Modules Without Connecting to WordPress.com

photo credit: Unplugged - (license)
photo credit: Unplugged(license)

Connecting a WordPress.com account in order to use Jetpack can be a hassle, especially when developing for clients or working on your local machine. If you like Jetpack but don’t want to connect to WordPress.com, there’s a new plugin that makes it easy to use the features that don’t require a connection.

Unplug Jetpack was created by WordPress developer Tanner Moushey. With the plugin activated, you won’t be required to connect to WordPress.com unless you need to use Site stats, Publicize, Related Posts, etc. If you don’t see the module you’re looking for among the others, that means that it likely requires a WordPress.com connection in order to use it.

The Unplug Jetpack plugin essentially puts Jetpack into development mode. Development mode was introduced in Jetpack 2.2.1 to help developers with local testing. It allows you to use features that do not require a connection to WordPress.com servers. Ordinarily, turning on development mode requires adding a line to your wp-config.php file or employing the filter via a plugin.

Unplug Jetpack is convenient, because it allows you to turn development mode on/off using a plugin. It uses the Jetpack-supported method for doing this and consists of just a couple lines of code:

function uj_init() {
	add_filter( 'jetpack_development_mode', '__return_true' );
}
add_action( 'plugins_loaded', 'uj_init' );

When asked whether or not the plugin offers a performance boost as opposed to using non-WordPress.com dependent modules with the connection to WordPress.com, Moushey said that it’s unlikely to have a significant performance impact. “But that is not really the point of this,” he said. It’s the principle of the matter – being able to use Jetpack’s code without the requirement of connecting to a third party. Unplug Jetpack lets you do that with the flip of a switch.

17 Comments


      1. My apologies, I noticed that after I posted. No offense taken if you’d like to remove the comment :)

        Report


    1. As a favor, if you’re going to use this on client sites, let them know somehow you’ve added this. You’d be surprised the support requests that come to the Jetpack team asking why Jetpack isn’t working to discover the site was put in dev mode by the original developer. :-)

      Report


    1. Oh no – throw down between Tanner and Michael at next WordCamp LOL :) So for matters of fairness I’ll put one on my site and one on my Mom’s site. Because you’re both awesome. :)

      Report


  1. This is awesome, I always hated connecting to WordPress.com, specifically as I wasn’t using WordPress.com.

    Do you know of anything that does or doesn’t work in JetPack once you unplug it? I’m thinking about stats mainly.

    Report


    1. Stats does require a connection. Here is a list of modules that require a connection to wordpress.com:

      Spelling and Grammar
      Jetpack Comments
      Enhanced Distribution
      JSON API
      Likes
      Monitor
      Notifications
      Photon
      Post by Email
      Publicize
      Related Posts
      WP.me Shortlinks
      Jetpack Single Sign On
      WordPress.com Stats
      Subscriptions
      VaultPress
      VideoPress

      Report


  2. i see they are no longer updating the videopress plugin in favor of the jetpack module

    Report


  3. The plugin works however i also tested the code you embedded in this post which uses plugins_loaded and it didn’t work for me from functions.php.

    What worked was using the filter on its own in functions.

    Report

Comments are closed.