jetpack_enhanced_distribution_before_activate_default_modules

The Jetpack by WordPress.com jetpack enhanced distribution before activate default modules function.

Description

jetpack_enhanced_distribution_before_activate_default_modules(); 

Usage

  1. if ( !function_exists( 'jetpack_enhanced_distribution_before_activate_default_modules' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/enhanced-distribution.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_enhanced_distribution_before_activate_default_modules(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/enhanced-distribution.php  
  1. function jetpack_enhanced_distribution_before_activate_default_modules() { 
  2. $old_version = Jetpack_Options::get_option( 'old_version' ); 
  3. list( $old_version ) = explode( ':', $old_version ); 
  4.  
  5. if ( version_compare( $old_version, '1.9-something', '>=' ) ) { 
  6. return; 
  7.  
  8. Jetpack::check_privacy( __FILE__ );