https://make.wordpress.org/core/2016/10/26/registering-your-settings-in-wordpress-4-7/
这个
register_setting() function 签名在v4中更改。7允许使用第三个选项的数组代替先前版本中的回调函数。将数组传递给WordPress v4中的register\\u setting()。6、x及更早版本将导致上述错误。
WordPress v4。6.8功能定义:https://github.com/WordPress/WordPress/blob/1aa173010736085a921beb10fd420d6d863419a5/wp-admin/includes/plugin.php#L1767-L1795
/**
* Register a setting and its sanitization callback
*
* @since 2.7.0
*
* @global array $new_whitelist_options
*
* @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
* Default whitelisted option key names include "general," "discussion," and "reading," among others.
* @param string $option_name The name of an option to sanitize and save.
* @param callable $sanitize_callback A callback function that sanitizes the option\'s value.
*/