2020-05-01 / 2432阅 / 悠然
Warning: This function has been deprecated. Use register_setting() instead.
Register a setting and its sanitization callback
Top ↑
(string)
(Required)
A settings group name. Should correspond to a whitelisted option key name. Default whitelisted option key names include 'general', 'discussion', 'media', 'reading', 'writing', 'misc', 'options', and 'privacy'.
(string)
(Required)
The name of an option to sanitize and save.
(callable)
(Optional)
A callback function that sanitizes the option's value.
Default value: ''