Refreshes the value of the allowed options list available via the ‘allowed_options’ hook.
See the ‘allowed_options’ filter.
$optionsarrayrequired
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;
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/option_update_filter