Add name slugs to admin ui
This commit is contained in:
@@ -196,12 +196,13 @@ final class Settings {
|
|||||||
|
|
||||||
echo implode('<br>', array_map(
|
echo implode('<br>', array_map(
|
||||||
fn (object $option):string => sprintf(
|
fn (object $option):string => sprintf(
|
||||||
'<label><input type="checkbox" name="%s[%s][]" value="%s" %s> %s</label>',
|
'<label><input type="checkbox" name="%s[%s][]" value="%s" %s> %s (%s)</label>',
|
||||||
esc_attr(Plugin::get_id()),
|
esc_attr(Plugin::get_id()),
|
||||||
esc_attr($name),
|
esc_attr($name),
|
||||||
esc_attr($option->name),
|
esc_attr($option->name),
|
||||||
checked($this->is_checked($name, $option->name), display: false),
|
checked($this->is_checked($name, $option->name), display: false),
|
||||||
esc_html($option->label)
|
esc_html($option->label),
|
||||||
|
esc_html($option->name)
|
||||||
),
|
),
|
||||||
$options
|
$options
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user