函数原型
remove_option_whitelist( array $del_options, string|array $options = ” ): array
函数描述
Removes a list of options from the allowed options list.
是否弃用
Warning: This function has been deprecated. Use remove_allowed_options() instead. Please consider writing more inclusive code.
函数参数
-
$del_options
array
Required -
$options
string|array
Optional Default:
''
函数返回值
array
函数位置
File: wp-includes/deprecated.php.
函数源码
function remove_option_whitelist( $del_options, $options = '' ) {
_deprecated_function( __FUNCTION__, '5.5.0', 'remove_allowed_options()' );
return remove_allowed_options( $del_options, $options );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 5.5.0 | Use remove_allowed_options() instead. Please consider writing more inclusive code. |
| 2.7.0 | Introduced. |

