pmpro_upgrade_1_8_9_3

Upgrade to 1.8.9.3 Fixing incorrect start and end dates.

Description

pmpro_upgrade_1_8_9_3(); 

Usage

  1. if ( !function_exists( 'pmpro_upgrade_1_8_9_3' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/updates/upgrade_1_8_9_3.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pmpro_upgrade_1_8_9_3(); 
  7.  

Defined (1)

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

/includes/updates/upgrade_1_8_9_3.php  
  1. function pmpro_upgrade_1_8_9_3() { 
  2. global $wpdb;  
  3.  
  4. //Fixing incorrect start and end dates. (Sets up update via AJAX) 
  5. $user_ids = $wpdb->get_col("SELECT user_id FROM $wpdb->pmpro_memberships_users WHERE status = 'active' AND modified > '2016-05-19'"); 
  6.  
  7. if(!empty($user_ids)) 
  8. pmpro_addUpdate('pmpro_upgrade_1_8_9_3_ajax'); 
  9.  
  10. pmpro_setOption("db_version", "1.91"); 
  11. return 1.893;