pmpro_isLevelTrial

The Paid Memberships Pro pmpro isLevelTrial function.

Description

pmpro_isLevelTrial( &$level ); 

Parameters (1)

0. $level
The level.

Usage

  1. if ( !function_exists( 'pmpro_isLevelTrial' ) ) { 
  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_isLevelTrial($level); 
  9.  

Defined (1)

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

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