Title: Programmatically Set Module Activation/Deactivation
Last modified: August 21, 2016

---

# Programmatically Set Module Activation/Deactivation

 *  Resolved [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * (@mrwweb)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/programmatically-set-module-activationdeactivation/)
 * Hi Jetpack,
 * I like your plugin and think it provides some really useful features. That said,
   I rarely want them all and so I spend a lot of time deactivating stuff that’s
   turned on by default. This is a particularly large issue for me right now because
   I’m working on a multisite project where I’m going to have to repeat the same
   deactivation settings 13 times.
 * Is there any way to set these programatically in functions.php or a plugin? I
   would love you forever.
 * And while this wouldn’t help me as much in my multisite case, even adding a bulk
   activate/deactivate tool (or just submit those requests via AJAX!!!!) would save
   me so much time.
 * Any help/advice/pointers you can give me would be appreciated. Thanks!
 * [http://wordpress.org/extend/plugins/jetpack/](http://wordpress.org/extend/plugins/jetpack/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 11 months ago](https://wordpress.org/support/topic/programmatically-set-module-activationdeactivation/#post-3860775)
 * Jetpack includes a function named `Jetpack::deactivate_module();`:
    [http://plugins.trac.wordpress.org/browser/jetpack/trunk/jetpack.php#L1033](http://plugins.trac.wordpress.org/browser/jetpack/trunk/jetpack.php#L1033)
 * You can build a small plugin and network activate it, and use this function to
   deactivate the modules you don’t want.
 * I hope this helps.
 *  Thread Starter [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * (@mrwweb)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/programmatically-set-module-activationdeactivation/#post-3860802)
 * That is fantastic and the exact pointer I was looking for. I’ll take a shot later
   today and report back if I have any problems.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Programmatically Set Module Activation/Deactivation’ is closed to new
replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [modules](https://wordpress.org/support/topic-tag/modules/)

 * 2 replies
 * 2 participants
 * Last reply from: [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/programmatically-set-module-activationdeactivation/#post-3860802)
 * Status: resolved