add_settings_field Wordpress function


Description:

Add a new field to a section of a settings page


Syntax:


Arguments:

(string) $id Slug-name to identify the field. Used in the 'id' attribute of tags.
(string) $title Formatted title of the field. Shown as the label for the field during output.
(string) $callback Function that fills the field with the desired form inputs. The function should echo its output.
(string) $page The slug-name of the settings page on which to show the section (general, reading, writing, ...).
(string) $section The slug-name of the section of the settings page in which to show the box (default, ...).
(array) $args Additional arguments


Return Type:


Define At:

wp-admin/includes/template.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/add_settings_field


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×