q: about add_settings_field() parameters
-
I was reading up on the settings api and in the add_settings_field( $id, $title, $callback, $page, $section, $args ); part, I’m not sure what the args parameter is for. All that was written in the codex is
$args
(array) (optional) Additional argumentsDefault: array()
What additional arguments can I specify and how will this effect the outcome of the output?
My first guess would be that the $args param is used with the the $callback parameter so that we can specify additional parameters in the callback.
Hopefully someone can clarify this for a wordpress noob (me). Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘q: about add_settings_field() parameters’ is closed to new replies.