If I add a setting using add_settings_field()
, it doesn’t create a <label>
around the title so that it can be clicked to focus on the field. Some of the core settings do this, but they just add it in the raw HTML rather than using the settings API. Is there any way to add labels with the settings API?
Leave a Reply
You must be logged in to post a comment.
You need to pass last parameter
$args
, if you wantadd_settings_field
to output<label>
use `label_for’ argument, see code snippet below