Core Function
View Source on Trac ↗ add_settings_section()
add_settings_section( mixed $id, mixed $title, mixed $callback, mixed $page, mixed $args = array() ) Adds a new section to a settings page.
Parameters 5 required
| Name / Type | Description |
|---|---|
| $id string | Slug-name to identify the section. Used in the 'id' attribute of tags. Required |
| $title string | Formatted title of the section. Shown as the heading for the section. Required |
| $callback callable | Function that echos out any content at the top of the section (between heading and fields). Required |
| string | $page The slug-name of the settings page on which to show the section. Built-in pages include 'general', 'reading', 'writing', 'discussion', 'media', etc. Create your own using add_options_page(); Required |
| array | $args { Arguments used to create the settings section. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.7.0
Source File
wp-admin/includes/template.php
Advertisement