Table of Contents
Let me share a summary of the available field types. Currently, only a very limited number of field types are supported, but I will add almost all possible field types very soon.
Available Field Types #
| Type | Description | Multiple Values | Example Use Case |
|---|---|---|---|
text | Single-line text input | No | Application name, message |
switch | Toggle on/off | No | Enable/disable features |
number | Numeric input | No | Maximum users, timeouts |
password | Masked password input | No | API keys, secrets |
radio | Single choice from options | No | Mode selection, format choice |
select | Dropdown selection | Yes (with multiple) | Method selection, role selection |
checkbox | Multiple selections | Yes | Feature toggles, requirements |
tags | Multiple tag-like values | Yes | Email lists, IP addresses |
datetime | Date/time picker | No | Schedules, maintenance windows |
Notes #
- All field values are automatically saved to WordPress options using
update_option()with the fieldidas the option name - The settings page uses the WordPress REST API for saving settings
- Only users with the specified
capabilitycan access the settings page - The React frontend is built from
wp-react-panel/build/directory - Make sure to build the React application before using this class