plugin1_get_version

The Google WebFonts Integrate plugin1 get version function.

Description

plugin1_get_version(); 

Usage

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

Defined (1)

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

/google-webfonts-integrate.php  
  1. function plugin1_get_version() { 
  2. if ( ! function_exists( 'get_plugins' ) ) 
  3. require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 
  4. $plugin_folder = get_plugins( '/' . plugin_basename( dirname( __FILE__ ) ) ); 
  5. $plugin_file = basename( ( __FILE__ ) ); 
  6. return $plugin_folder[$plugin_file]['Version'];