gde_is_beta
Check current beta status.
Description
gde_is_beta();
Usage
if ( !function_exists( 'gde_is_beta' ) ) { require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; } // NOTICE! Understand what this does before running. $result = gde_is_beta();
Defined (1)
The function is defined in the following location(s).
- /functions-admin.php
- function gde_is_beta() {
- global $pdata;
- // check for currently running beta version (contains any letter or hyphen)
- if ( preg_match( '/[a-z-]/i', $pdata['Version'] ) ) {
- // running a beta
- return true;
- } else {
- return false;
- }
- }