Skip to content

Commit

Permalink
Update readme with new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsmason committed Nov 25, 2022
1 parent 92a7f0f commit 060de81
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ $settings = new SettingsApi(
'Plugin Settings',
'Plugin Settings',
'manage_options',
'plugin-name'
'plugin-name',
100,
);

// Section: Basic Settings.
Expand Down Expand Up @@ -149,6 +150,27 @@ $settings->add_field(
]
);

// Field: Multicheck with descriptions.
$settings->add_field(
'plugin_name_basic',
[
'id' => 'multicheck_descriptions',
'type' => 'multicheck',
'name' => __( 'Multile checkbox with descriptions', 'plugin-name' ),
'desc' => __( 'Multile checkbox description', 'plugin-name' ),
'options' => [
'yes' => [
'label' => 'Yes',
'desc' => 'Description of option',
],
'no' => [
'label' => 'No',
'desc' => 'Description of option',
],
],
]
);

// Field: Select.
$settings->add_field(
'plugin_name_basic',
Expand Down

0 comments on commit 060de81

Please sign in to comment.