option_update_filter()

最后更新于:2021-11-27 18:16:06

option_update_filter( array$options)

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

参数

$options

(array) (Required)

响应

(array)

源文件

文件: gc-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;
}