bws_wp_version_check

The Google +1 by BestWebSoft bws wp version check function.

Description

bws_wp_version_check( (string) $plugin_basename, $plugin_info, $require_wp ); 

Parameters (3)

0. $plugin_basename (string)
The plugin basename.
1. $plugin_info
The plugin info.
2. $require_wp
The require wp.

Usage

  1. if ( !function_exists( 'bws_wp_version_check' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-1-by-bestwebsoft/bws_menu/deprecated.php'; 
  3.  
  4. // The plugin basename. 
  5. $plugin_basename = ''; 
  6.  
  7. // The plugin info. 
  8. $plugin_info = null; 
  9.  
  10. // The require wp. 
  11. $require_wp = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bws_wp_version_check($plugin_basename, $plugin_info, $require_wp); 
  15.  

Defined (1)

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

/bws_menu/deprecated.php  
  1. function bws_wp_version_check( $plugin_basename, $plugin_info, $require_wp ) { 
  2. global $bstwbsftwppdtplgns_options; 
  3. if ( ! isset( $bstwbsftwppdtplgns_options ) ) 
  4. $bstwbsftwppdtplgns_options = ( function_exists( 'is_multisite' ) && is_multisite() ) ? get_site_option( 'bstwbsftwppdtplgns_options' ) : get_option( 'bstwbsftwppdtplgns_options' ); 
  5. if ( ! isset( $bstwbsftwppdtplgns_options['deprecated_function']['bws_wp_version_check'] ) ) { 
  6. $bstwbsftwppdtplgns_options['deprecated_function']['bws_wp_version_check'] = array( 
  7. 'product-name' => $plugin_info['Name'] 
  8. ); 
  9. if ( is_multisite() ) 
  10. update_site_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options ); 
  11. else 
  12. update_option( 'bstwbsftwppdtplgns_options', $bstwbsftwppdtplgns_options );