pmpro_upgrade_1_4_8

The Paid Memberships Pro pmpro upgrade 1 4 8 function.

Description

pmpro_upgrade_1_4_8(); 

Usage

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

Defined (1)

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

/includes/updates/upgrade_1_4_8.php  
  1. function pmpro_upgrade_1_4_8() 
  2. /** 
  3. Adding a billing_country field to the orders table.  
  4. */ 
  5.  
  6. global $wpdb; 
  7. $wpdb->hide_errors(); 
  8. $wpdb->pmpro_membership_orders = $wpdb->prefix . 'pmpro_membership_orders'; 
  9.  
  10. //billing_country 
  11. $sqlQuery = " 
  12. ALTER TABLE `" . $wpdb->pmpro_membership_orders . "` ADD `billing_country` VARCHAR( 128 ) NOT NULL AFTER `billing_zip` 
  13. "; 
  14. $wpdb->query($sqlQuery); 
  15.  
  16. pmpro_setOption("db_version", "1.48"); 
  17. return 1.48;