Posted in:

WordPress: Creating Theme Options in Admin

These are the WP functions in the Settings API: Register Setting $option_group (string) (Required) A settings group name. Should correspond to a whitelisted option key name. Default whitelisted option key names include “general,” “discussion,” and “reading,” among others. $option_name (string) (Required) The name of an option to sanitize and save. $args (array) (Optional) Data used to describe the setting when registered. […]