pmpro_isLevelExpiring

The Paid Memberships Pro pmpro isLevelExpiring function.

Description

pmpro_isLevelExpiring( &$level ); 

Parameters (1)

0. $level
The level.

Usage

  1. if ( !function_exists( 'pmpro_isLevelExpiring' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/functions.php'; 
  3.  
  4. // The level. 
  5. $level = &$level; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pmpro_isLevelExpiring($level); 
  9.  

Defined (1)

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

/includes/functions.php  
  1. function pmpro_isLevelExpiring(&$level) 
  2. if(!empty($level) && (!empty($level->expiration_number) && $level->expiration_number > 0) || !empty($level->enddate)) 
  3. return true; 
  4. else 
  5. return false;