wpseek.com
A WordPress-centric search engine for devs and theme authors



option_update_filter › WordPress Function

Since2.7.0
Deprecatedn/a
option_update_filter ( $options )
Parameters:
  • (array) $options
    Required: Yes
Returns:
  • (array)
Defined at:
Codex:
Change Log:
  • 5.5.0

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

See the {@see 'allowed_options'} filter.


Source

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