pmpro_isLevelFree

The Paid Memberships Pro pmpro isLevelFree function.

Description

pmpro_isLevelFree( &$level ); 

Parameters (1)

0. $level
The level.

Usage

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

Defined (1)

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

/includes/functions.php  
  1. function pmpro_isLevelFree(&$level) 
  2. if(!empty($level) && $level->initial_payment <= 0 && $level->billing_amount <= 0 && $level->trial_amount <= 0) 
  3. return true; 
  4. else 
  5. return false;