option_update_filter( array $options )
Refreshes the value of the allowed options list available via the ‘allowed_options’ hook.
Description
See the ‘allowed_options’ filter.
Parameters
- $options
-
(Required)
Return
(array)
Source
File: wp-admin/includes/plugin.php
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;
}
Changelog
Version | Description |
---|---|
5.5.0 | $new_whitelist_options was renamed to $new_allowed_options .<br> Please consider writing more inclusive code. |
2.7.0 | Introduced. |