Function: do_settings_fields

do_settings_fields( string $page, string $section )

Print out the settings fields for a particular settings section.

Shortcut: dsf

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Part of the Settings API. Use this in a settings page to output a specific section. Should normally be called by do_settings_sections() rather than directly.

Parameters

Name Type(s) Default Value Description
$page string

Slug title of the admin page whose settings fields you want to show.

$section string

Slug title of the settings section whose fields you want to show.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.