pmpro_upgrade_1_4

The Paid Memberships Pro pmpro upgrade 1 4 function.

Description

pmpro_upgrade_1_4(); 

Usage

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

Defined (1)

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

/includes/updates/upgrade_1_4.php  
  1. function pmpro_upgrade_1_4() 
  2. global $wpdb; 
  3. $wpdb->hide_errors(); 
  4. $wpdb->pmpro_membership_levels = $wpdb->prefix . 'pmpro_membership_levels'; 
  5.  
  6. //confirmation message 
  7. $sqlQuery = " 
  8. ALTER TABLE `" . $wpdb->pmpro_membership_levels . "` ADD `confirmation` LONGTEXT NOT NULL AFTER `description` 
  9. "; 
  10. $wpdb->query($sqlQuery); 
  11.  
  12. pmpro_setOption("db_version", "1.4"); 
  13. return 1.4;