pmpro_isUpdateRequired

Is there an update?.

Description

pmpro_isUpdateRequired(); 

Usage

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

Defined (1)

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

/includes/updates.php  
  1. function pmpro_isUpdateRequired() { 
  2. $updates = get_option('pmpro_updates', array()); 
  3. return(!empty($updates));