prepare_ms_account_classes

The Membership 2 prepare ms account classes function.

Description

prepare_ms_account_classes(); 

Usage

  1. if ( !function_exists( 'prepare_ms_account_classes' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app/template/template-tags.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = prepare_ms_account_classes(); 
  7.  

Defined (1)

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

/app/template/template-tags.php  
  1. function prepare_ms_account_classes() { 
  2. $subscription = MS_Helper_Template::$ms_account['subscription']; 
  3. $membership = $subscription->get_membership(); 
  4. return array( 
  5. 'ms-subscription-' . $subscription->id,  
  6. 'ms-status-' . $subscription->status,  
  7. 'ms-type-' . $membership->type,  
  8. 'ms-payment-' . $membership->payment_type,  
  9. 'ms-gateway-' . $subscription->gateway_id,  
  10. 'ms-membership-' . $subscription->membership_id,  
  11. $subscription->has_trial() ? 'ms-with-trial' : 'ms-no-trial',  
  12. );