WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Jetpack First activation and auto-activation (4 posts)

  1. StelleDiPolvere
    Member
    Posted 8 months ago #

    By default my hosting install Jetpack on wordpress
    (Deactivated). I would like to use it.

    I never activated it, and i know that if i will do that it will disrupt my website for various incompatibility with WordPress Seo (open-graph issue http://yoast.com/jetpack-and-wordpress-seo/ ), simple Lightbox ( probably will be incompatible with Carousel) and probably others...
    This is a list of plugin that i'm using right now
    Akismet, Custom Upload Dir, Fast Secure Contact Form, FooTable, Hello, Dolly, Jetpack by WordPress.com, NK Google Analytics, Page-list, Redirection, Reveal IDs, Simple Lightbox, WordPress SEO

    Can i add something in some file to disable all automatic activationof all jetpack module?
    I read this:
    http://jetpack.me/2013/10/07/do-not-automatically-activate-a-jetpack-module/ but i didn't figured out if this is what i need... and in which file to add the code. I'm sorry...

    Can you help me please?

    Thanks in advance.

    http://wordpress.org/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 8 months ago #

    I would recommend that you enable Jetpack, and then head over to the Jetpack menu and deactivate any modules that you do not plan on using. You can do so by following the instructions here:
    http://jetpack.me/support/activate-and-deactivate-modules/

    Various incompatibility with WordPress SEO (open-graph issue http://yoast.com/jetpack-and-wordpress-seo/ )

    We fixed this issue a year ago, so that's not a problem anymore.

    Looking at your list of plugins, you'll probably want to deactivate the Carousel module as well as the Contact Form module, since you already use Fast Secure Contact Form and Simple Lightbox.
    If you do not want to deactivate the 2 modules by hand, you can use the code given in the tutorial you linked to earlier, like so:

    // Disable the auto-activation of Jetpack's Contact Form and Carousel modules:
    add_filter( 'jetpack_get_default_modules', 'disable_jetpack_contact_carousel_autoactivate' );
    function disable_jetpack_contact_carousel_autoactivate( $modules ) {
    	return array_diff( $modules, array( 'contact-form, carousel' ) );
    }

    You can place this code in a functionality plugin or in your theme's functions.php file.

  3. StelleDiPolvere
    Member
    Posted 8 months ago #

    Jeremy Herve thanks for the quick response! It is always nice to see a tech savvy person like you that quickly answers to questions! :)

    If you wanted all Jetpack modules to be deactivated by default, you could use the following code:

    add_filter( 'jetpack_get_default_modules', '__return_empty_array' );

    If I want to do that, I just need to write this line and nothing else in function.php?
    And than manually activate each module...?

    Thanks in advance!

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 8 months ago #

    If I want to do that, I just need to write this line and nothing else in function.php?

    That's correct.

Reply

You must log in to post.

About this Plugin

About this Topic