do_settings_fields() is not calling on additional arguments from add_settings_field()
|Reported by:||hanilovesme||Owned by:|
According to the codex, the function add_settings_field() accepts a callback function, and additional arguments, as two of its parameters. It then passes this date to do_settings_field().
However, do_settings_field() calls the callback function, but ignores the additional arguments:
call_user_func($field[ 'callback' ]); <--- wouldn't $field[ 'args' ] be called as the second argument here?
Change History (7)
comment:1 hanilovesme — 4 years ago
- Summary changed from additional arguments from add_settings_field do not get called on do_settings_fields to do_settings_fields() is not calling on additional arguments from add_settings_field()
- Component changed from General to Administration
- Keywords has-patch added
- Milestone changed from Unassigned to 2.9