option_update_filter

Refreshes the value of the options whitelist available via the 'whitelist_options' hook.

Description

(array) option_update_filter( (array) $options ); 

See the filter.

Returns (array)

Parameters (1)

0. $options (array)
The options.

Usage

  1. if ( !function_exists( 'option_update_filter' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/plugin.php'; 
  3.  
  4. // The options. 
  5. $options = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = option_update_filter($options); 
  9.  

Defined (1)

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

/wp-admin/includes/plugin.php  
  1. function option_update_filter( $options ) { 
  2. global $new_whitelist_options; 
  3.  
  4. if ( is_array( $new_whitelist_options ) ) 
  5. $options = add_option_whitelist( $new_whitelist_options, $options ); 
  6.  
  7. return $options;