ddw_gftb_update_available

Gravity Forms version compare for update check.

Description

ddw_gftb_update_available(); 

Usage

  1. if ( !function_exists( 'ddw_gftb_update_available' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-toolbar/gravity-forms-toolbar.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_gftb_update_available(); 
  7.  

Defined (1)

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

/gravity-forms-toolbar.php  
  1. function ddw_gftb_update_available() { 
  2.  
  3. /** Check if Gravity Forms is active - class 'GFCommon' available */ 
  4. if ( class_exists( 'GFCommon' ) ) { 
  5.  
  6. $version_info = GFCommon::get_version_info(); 
  7.  
  8. return version_compare( GFCommon::$version, $version_info[ "version" ], '<' ); 
  9.  
  10. } // end if class check 
  11.  
  12. } // end of function ddw_gftb_update_available