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 allowed options list available via the 'allowed_options' hook.

See the Array filter.


Source

function option_update_filter( $options ) {
	global $new_whitelist_options;

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

	return $options;
}