jetpack_protect_get_global_whitelist

Get the global, network-wide whitelist.

Description

(array) jetpack_protect_get_global_whitelist(); 

It will revert to the legacy site_option if jetpack_protect_global_whitelist has never been set

Returns (array)


Usage

  1. if ( !function_exists( 'jetpack_protect_get_global_whitelist' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/protect/shared-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_protect_get_global_whitelist(); 
  7.  

Defined (1)

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

/modules/protect/shared-functions.php  
  1. function jetpack_protect_get_global_whitelist() { 
  2. $whitelist = get_site_option( 'jetpack_protect_global_whitelist' ); 
  3.  
  4. if ( false === $whitelist ) { 
  5. // The global whitelist has never been set. Check for legacy site_option, or default to an empty array 
  6. $whitelist = get_site_option( 'jetpack_protect_whitelist', array () ); 
  7.  
  8. return $whitelist;