第六个参数($args
) 的add_settings_field
函数可以包含class
将添加到<tr>
.
您可以将其用于内置的admin css类.hidden
add_settings_field(
\'field_id\',
\'Useless Field Label\',
\'render_hidden_field_function\',
\'some_settings_page\',
\'a_section_slug\',
[
\'class\' => \'hidden\'
]
);