Codex

Function Reference/settings fields

Contents

Description

Output nonce, action, and option_page fields for a settings page. Please note that this function must be called inside of the form tag for the options page.

Usage

<?php settings_fields$option_group ?>

Parameters

$option_group
(string) (required) A settings group name. This should match the group name used in register_setting().
Default: None

Return Values

(void) 
This function does not return a value.

Examples

Notes

Change Log

Since: 2.7.0

Source File

settings_fields() is located in wp-admin/includes/plugin.php.

Related

This function is part of the Settings_API.


See also index of Function Reference and index of Template Tags.