WordPress filter hook

jetpack_get_module

Defined by Jetpack and fired by 28 plugins in total, running on 4M+ sites between them.

“Filter the returned data about a module.”

How to use jetpack_get_module

It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'jetpack_get_module', function( $mod, $module, $file ) {
	// Change $mod here.
	return $mod;
}, 10, 3 );

Argument names come from Jetpack's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

28 plugins that fire jetpack_get_module

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Jetpack icon Jetpack3+ million installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  2. Social Chat icon Social Chat200,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  3. Jetpack Boost icon Jetpack Boost200,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  4. Jetpack Protect icon Jetpack Protect100,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  5. Social Feed Gallery icon Social Feed Gallery80,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  6. Checkout Field Manager (Checkout Manager) for WooCommerce icon Checkout Field Manager (Checkout Manager) for WooCommerce80,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  7. Direct Checkout for WooCommerce icon Direct Checkout for WooCommerce70,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  8. Search Exclude icon Search Exclude50,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  9. Perfect Brands for WooCommerce icon Perfect Brands for WooCommerce40,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  10. Autocomplete WooCommerce Orders icon Autocomplete WooCommerce Orders30,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  11. Jetpack Social icon Jetpack Social30,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  12. Jetpack CRM icon Jetpack CRM30,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  13. Jetpack VaultPress Backup icon Jetpack VaultPress Backup20,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  14. Automattic For Agencies Client icon Automattic For Agencies Client20,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  15. WP Menu Icons icon WP Menu Icons20,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  16. Ajax add to cart for WooCommerce icon Ajax add to cart for WooCommerce10,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  17. QuadMenu icon QuadMenu10,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  18. Jetpack VideoPress icon Jetpack VideoPress7,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  19. QuadLayers TikTok Feed icon QuadLayers TikTok Feed7,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  20. Jetpack Search icon Jetpack Search5,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  21. Change Storefront Footer Copyright Text icon Change Storefront Footer Copyright Text3,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  22. AI Copilot icon AI Copilot1,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  23. Jetpack Stats icon Jetpack Stats1,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  24. QuadLayers Telegram Button icon QuadLayers Telegram Button1,000+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  25. PayPal Payment Buttons icon PayPal Payment Buttons500+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  26. Lifetime Subscriptions for WooCommerce icon Lifetime Subscriptions for WooCommerce40+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  27. Invoice Manager for WooCommerce icon Invoice Manager for WooCommerce30+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140
  28. Licenses Manager for WooCommerce icon Licenses Manager for WooCommerce10+ installs apply_filters( 'jetpack_get_module', $mod, $module, $file ) jetpack_vendor/automattic/jetpack-status/src/class-modules.php:140

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.