WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/do settings fields

Contents

Description

Prints out the settings fields for a particular settings section.

Usage

<?php do_settings_fields$page$section ); ?>

Parameters

$page
(string) (required) Slug title of the admin page whose settings fields you want to show. This should match the page name used in add_settings_section().
Default: None
$section
(string) (required) Slug title of the settings section whose fields you want to show. This should match the section ID used in add_settings_section().
Default: None

Notes

Should normally be called by do_settings_sections() rather than directly.

Source File

do_settings_fields() is located in wp-admin/includes/template.php.

Related

Settings API: register_setting(), unregister_setting(), add_settings_field(), add_settings_section(), add_settings_error(), get_settings_errors(), settings_errors()

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