option_update_filter( array $options )

Refreshes the value of the allowed options list available via the ‘allowed_options’ hook.


Description Description

See the ‘allowed_options’ filter.


Top ↑

Parameters Parameters

$options

(array) (Required)


Top ↑

Return Return

(array)


Top ↑

Source Source

File: wp-admin/includes/plugin.php

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;
}


Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.