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:

[php light=”true”]
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 responses to “Unplug Jetpack: Use Jetpack Modules Without Connecting to WordPress.com”

    • 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
      Post by Email
      Related Posts
      WP.me Shortlinks
      Jetpack Single Sign On
      WordPress.com Stats


Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

%d bloggers like this: