gde_is_beta

Check current beta status.

Description

gde_is_beta(); 

Usage

  1. if ( !function_exists( 'gde_is_beta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gde_is_beta(); 
  7.  

Defined (1)

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

/functions-admin.php  
  1. function gde_is_beta() { 
  2. global $pdata; 
  3.  
  4. // check for currently running beta version (contains any letter or hyphen) 
  5. if ( preg_match( '/[a-z-]/i', $pdata['Version'] ) ) { 
  6. // running a beta 
  7. return true; 
  8. } else { 
  9. return false;