Function: do_settings_sections

do_settings_sections( string $page )

Prints out all settings sections added to a particular settings page

Shortcut: dss

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 callback function to output all the sections and fields that were added to that $page with add_settings_section() and add_settings_field()


Name Type(s) Default Value Description
$page string

The slug name of the page whose settings sections you want to output.

WordPress Developer Newsletter

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