WordPress at Your Fingertips
function is not described

option_update_filter() WP 2.7.0

Refreshes the value of the allowed options list available via the allowed_options

See the allowed_options filter.

No Hooks.

Return

Array.

Usage

option_update_filter( $options );
$options(array) (required)
-

Notes

  • Global. Array. $new_allowed_options

Changelog

Since 2.7.0 Introduced.
Since 5.5.0 $new_whitelist_options was renamed to $new_allowed_options. Please consider writing more inclusive code.

Code of option_update_filter() WP 5.8.2

function option_update_filter( $options ) {
	global $new_allowed_options;

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

	return $options;
}