WordPress Version: 5.5
/* Allowed list functions */
/**
* Refreshes the value of the allowed options list available via the 'allowed_options' hook.
*
* See the {@see 'allowed_options'} filter.
*
* @since 2.7.0
* @since 5.5.0 `$new_whitelist_options` was renamed to `$new_allowed_options`.
* Please consider writing more inclusive code.
*
* @global array $new_allowed_options
*
* @param array $options
* @return array
*/
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;
}