M_Alterfor14

The Membership 2 M Alterfor14 function.

Description

M_Alterfor14(); 

Usage

  1. if ( !function_exists( 'M_Alterfor14' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/classes/upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = M_Alterfor14(); 
  7.  

Defined (1)

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

/app_old/membershipincludes/classes/upgrade.php  
  1. function M_Alterfor14() { 
  2. global $wpdb; 
  3.  
  4. $sql = "ALTER TABLE " . membership_db_prefix($wpdb, 'coupons') . " ADD `coupon_apply_to` VARCHAR(20) NULL DEFAULT NULL AFTER `coupon_used`;"; 
  5.  
  6. $wpdb->query( $sql ); 
  7.