monsterinsights_get_license_key_errors

Returns possible license key error flag.

Description

monsterinsights_get_license_key_errors(); 

Usage

  1. if ( !function_exists( 'monsterinsights_get_license_key_errors' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-analytics-for-wordpress-by-monsterinsights/includes/options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = monsterinsights_get_license_key_errors(); 
  7.  

Defined (1)

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

/includes/options.php  
  1. function monsterinsights_get_license_key_errors() { 
  2. $errors = false; 
  3. if ( ! empty( $license['type'] ) && is_string( $license['type'] ) && strlen( $license['type'] ) > 3 ) { 
  4. if ( ( isset( $license['is_expired'] ) && $license['is_expired'] )  
  5. || ( isset( $license['is_disabled'] ) && $license['is_disabled'] ) 
  6. || ( isset( $license['is_invalid'] ) && $license['is_invalid'] ) ) { 
  7. $errors = true; 
  8. return $errors;