A WordPress-centric search engine for devs and theme authors



option_update_filter ›

Since2.7.0
Deprecatedn/a
option_update_filter ( $options )
Parameters:
  • (array) $options
    Required: Yes
Returns:
  • (array)
Defined at:
Codex:

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

See the {@see 'whitelist_options'} filter.



Source

function option_update_filter( $options ) {
	global $new_whitelist_options;

	if ( is_array( $new_whitelist_options ) ) {
		$options = add_option_whitelist( $new_whitelist_options, $options );
	}

	return $options;
}