WordPress.org

Codex

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

Function Reference/do settings sections

Description

Prints out all settings sections added to a particular settings page.

Usage

<?php do_settings_sections$page ); ?>

Parameters

$page
(string) (required) The slug name of the page whose settings sections you want to output. This should match the page name used in add_settings_section().
Default: None

Notes

This will output the section titles wrapped in h3 tags and the settings fields wrapped in tables.

Source File

do_settings_sections() 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.