Add_settings_field() parameterizing callback?

The last optional $args argument the you can pass to add_settings_fields() is passed to callback. So it seems you can use same callback just fine.

Hope I am right because I just stumbled onto this two minutes ago because of discussion in chat. 🙂

PS looked through code and it’s indeed relatively recent, before ~2.9 arguments weren’t passed.

Leave a Comment