bws_hide_premium_options

The Google Sitemap by BestWebSoft bws hide premium options function.

Description

bws_hide_premium_options( $options ); 

Parameters (1)

0. $options
The options.

Usage

  1. if ( !function_exists( 'bws_hide_premium_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/bws_menu/bws_functions.php'; 
  3.  
  4. // The options. 
  5. $options = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bws_hide_premium_options($options); 
  9.  

Defined (1)

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

/bws_menu/bws_functions.php  
  1. function bws_hide_premium_options( $options ) { 
  2. if ( ! isset( $options['hide_premium_options'] ) || ! is_array( $options['hide_premium_options'] ) ) 
  3. $options['hide_premium_options'] = array(); 
  4.  
  5. $options['hide_premium_options'][] = get_current_user_id(); 
  6.  
  7. return array(  
  8. 'message' => __( 'You can always look at premium options by clicking on the "Show Pro features" in the "Go PRO" tab', 'bestwebsoft' ),  
  9. 'options' => $options );