pmpro_upgrade_1_6

The Paid Memberships Pro pmpro upgrade 1 6 function.

Description

pmpro_upgrade_1_6(); 

Usage

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

Defined (1)

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

/includes/updates/upgrade_1_6.php  
  1. function pmpro_upgrade_1_6() 
  2. global $wpdb; 
  3. $wpdb->hide_errors(); 
  4. $wpdb->pmpro_membership_orders = $wpdb->prefix . 'pmpro_membership_orders'; 
  5.  
  6. //add notes column to orders 
  7. $sqlQuery = "ALTER TABLE `" . $wpdb->pmpro_membership_orders . "` ADD `notes` TEXT NOT NULL"; 
  8. $wpdb->query($sqlQuery); 
  9.  
  10. pmpro_setOption("db_version", "1.6"); 
  11. return 1.6;