add_settings_fields
-
Howdy,
iv noticed some confusion over the $id attribute, some guides seem to match the html id value and some guides seem to match every additional add_settings_fields to the $option_name within register_settings?? why would they do this???
register_setting(‘$option_group’ $option_name);
i hope someone can clear up the correct way to address the $id
thankyou in advance
below is from the official explanation:
add_settings_field( string $id, string $title, callable $callback, string $page, string $section = ‘default’, array $args = array() )$id
(string) (Required) Slug-name to identify the field. Used in the ‘id’ attribute of tags.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘add_settings_fields’ is closed to new replies.