pmpro_upgrade_1_5_9

The Paid Memberships Pro pmpro upgrade 1 5 9 function.

Description

pmpro_upgrade_1_5_9(); 

Usage

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

Defined (1)

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

/includes/updates/upgrade_1_5_9.php  
  1. function pmpro_upgrade_1_5_9() 
  2. global $wpdb; 
  3. $wpdb->hide_errors(); 
  4. $wpdb->pmpro_membership_orders = $wpdb->prefix . 'pmpro_membership_orders'; 
  5.  
  6. //fix firstpayment statuses 
  7. $sqlQuery = "UPDATE " . $wpdb->pmpro_membership_orders . "SETstatus = 'success' WHERE status = 'firstpayment'"; 
  8. $wpdb->query($sqlQuery); 
  9.  
  10. pmpro_setOption("db_version", "1.59"); 
  11. return 1.59;