pmpro_license_pause

Check for pause.

Description

pmpro_license_pause(); 

Usage

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

Defined (1)

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

/includes/license.php  
  1. function pmpro_license_pause() { 
  2. if(!empty($_REQUEST['pmpro_nag_paused']) && current_user_can('manage_options')) { 
  3. $pmpro_nag_paused = current_time('timestamp')+(3600*24*7); 
  4. update_option('pmpro_nag_paused', $pmpro_nag_paused, 'no'); 
  5.  
  6. return;