Using add_settings_field();
i am able to add my custom setting:
add_settings_field('AUTOPLAY', 'Auto Play', 'printAutoPlayCheckbox', 'my_settings');
function printAutoPlayCheckbox()
{
$id = 'AUTOPLAY';
$name = 'my_settings' . "[$id]";
$options = get_option('my_settings');
echo '<input type="checkbox" id="' . $id . '" name="' . $name . '" ' . checked(1, isset($options[$id]), false) . '" />';
}
Now i want to add a short description of this setting, something like that:
How can i do that? I couldn't find it in the WordPress docs.