Glossary Term
register_setting()
register_setting() — Registers a setting and its data.
Inputs: $option_group (string): A settings group name. Should correspond to an allowed option key name. Default allowed option key names include ‘general’, ‘discussion’, ‘media’, ‘reading’, ‘writing’, and ‘options’. $option_name (string): The name of an option to sanitize and save. $args (array): Data used to describe the setting when registered. Field $type (string): The type of data associated with this setting. Valid values are ‘string’, ‘boolean’, ‘integer’, ‘number’, ‘array’, and ‘object’. Field $label (string): A label of the data attached to this setting. Field $description (string): A description of the data attached to this setting. Field $sanitize_callback (callable|null): A callback function that sanitizes the option’s value. Default null. Field $show_in_rest (bool|array): Whether data associated with this setting should be included in the REST API. When registering complex settings, this argument may optionally be an array with a ‘schema’ key. Field $default (mixed): Default value when calling get_option().
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
