gglstmp_register_settings

The Google Sitemap by BestWebSoft gglstmp register settings function.

Description

gglstmp_register_settings(); 

Usage

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

Defined (1)

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

/google-sitemap-plugin.php  
  1. function gglstmp_register_settings() { 
  2. global $gglstmp_options, $gglstmp_plugin_info; 
  3.  
  4. /**  
  5. * Renaming old version options 
  6. * @deprecated since 3.0.8 
  7. * @todo remove after 28.10.2017 
  8. */ 
  9.  
  10. if ( ! get_option( 'gglstmp_options' ) ) { 
  11. $options_default = gglstmp_get_options_default(); 
  12. add_option( 'gglstmp_options', $options_default ); 
  13.  
  14. $gglstmp_options = get_option( 'gglstmp_options' ); 
  15.  
  16. if ( ! isset( $gglstmp_options['plugin_option_version'] ) || $gglstmp_options['plugin_option_version'] != $gglstmp_plugin_info['Version'] ) { 
  17. $options_default = gglstmp_get_options_default(); 
  18. $gglstmp_options = array_merge( $options_default, $gglstmp_options ); 
  19. $gglstmp_options['plugin_option_version'] = $gglstmp_plugin_info["Version"]; 
  20. /** show pro features */ 
  21. $gglstmp_options['hide_premium_options'] = array(); 
  22. update_option( 'gglstmp_options', $gglstmp_options );