bws_hide_premium_options_check

The Google Sitemap by BestWebSoft bws hide premium options check function.

Description

bws_hide_premium_options_check( $options ); 

Parameters (1)

0. $options
The options.

Usage

  1. if ( !function_exists( 'bws_hide_premium_options_check' ) ) { 
  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_check($options); 
  9.  

Defined (1)

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

/bws_menu/bws_functions.php  
  1. function bws_hide_premium_options_check( $options ) { 
  2. if ( ! empty( $options['hide_premium_options'] ) && in_array( get_current_user_id(), $options['hide_premium_options'] ) ) 
  3. return true; 
  4. else 
  5. return false;