monsterinsights_get_license_key_type

Returns the license key type for MonsterInsights.

Description

(string) monsterinsights_get_license_key_type(); 

Returns (string)

$type The user's license key type for MonsterInsights.


Usage

  1. if ( !function_exists( 'monsterinsights_get_license_key_type' ) ) { 
  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_type(); 
  7.  

Defined (1)

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

/includes/options.php  
  1. function monsterinsights_get_license_key_type() { 
  2. $type = false; 
  3. if ( ! empty( $license['type'] ) && is_string( $license['type'] ) ) { 
  4. if ( in_array( $license['type'], array( 'master', 'pro', 'plus', 'basic' ) ) ) { 
  5. $type = $license['type']; 
  6. return $type;