Function: settings_fields

settings_fields( string $option_group )

Output nonce, action, and option_page fields for a settings page.

Shortcut: sf

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.

Parameters

Name Type(s) Default Value Description
$option_group string

A settings group name. This should match the group name used in register_setting().

WordPress Developer Newsletter

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