Title: Reusable Admin Panel
Author: Poly Plugins
Published: <strong>2023 年 1 月 25 日</strong>
Last modified: 2025 年 8 月 21 日

---

搜索插件

![](https://ps.w.org/reusable-admin-panel/assets/banner-772x250.png?rev=3271432)

![](https://ps.w.org/reusable-admin-panel/assets/icon-256x256.png?rev=3271432)

# Reusable Admin Panel

 作者：[Poly Plugins](https://profiles.wordpress.org/polyplugins/)

[下载](https://downloads.wordpress.org/plugin/reusable-admin-panel.1.0.7.zip)

 * [详情](https://cn.wordpress.org/plugins/reusable-admin-panel/#description)
 * [评价](https://cn.wordpress.org/plugins/reusable-admin-panel/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/reusable-admin-panel/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/reusable-admin-panel/#developers)

 [支持](https://wordpress.org/support/plugin/reusable-admin-panel/)

## 描述

A settings class to help developers easily add beautiful admin pages and handle 
getting, sanitizing, and saving options.

### Update

With the updated release of [Settings Class for WordPress](https://github.com/PolyPlugins/Settings-Class-for-Wordpress),
we do not plan to add new features to this plugin. We will continue to provide fixes,
but adding new functionality would make it difficult to maintain as it would need
to be fully backwards compatible.

Settings Class for WordPress may include breaking changes, but it does not auto 
update, so you won’t have to worry about plugins breaking unexpectedly. You can 
take your time to migrate to the new version, and any breaking changes will be reserved
for major releases.

### About

Our goal was to create a reuseable admin panel that can be used by various plugins
without having to build or include classes of the same code in multiple plugins,
while at the same time being quick to setup.

View our [Documentation](https://www.polyplugins.com/docs/reusable-admin-panel/)
to see a list of fields and their parameters.

You can also download our [example plugin](https://www.polyplugins.com/reusable-admin-panel-example-plugin/)
to get up and running as quick as possible.

Have suggestions? Submit a Pull Requests via [Github](https://github.com/PolyPlugins/Reusable-Admin-Panel).

### Features

 * Bootstrap
 * Font-Awesome Field Info Buttons and Sidebar Info Helper
 * jQuery Dynamic Navigation
 * Validation using validator.js
 * Automatic sanitization and saving of options
 * Method built to easily get individual options
 * Settings Grouped Under One Option in Database (Saved as Multi-Dimensional Array)
 * Bootstrap Spinner Preloader (Prevents Layout Shifting on Load)
 * Removes notices from other plugins when displaying admin panel
 * Prevent users from deactivating by displaying a [sweetalert2](https://sweetalert2.github.io)
   to deactivate the plugin using the dependency.

### Fields

 * Switch
 * Text
 * Textarea
 * Email
 * URL
 * Password
 * Number
 * Dropdown
 * Date
 * Time
 * Color
 * Dropdown Toggle – Additional fields can be added under a dropdown which show/
   hide based on selected option
 * Button – Add multiple buttons that can link or be targeted in custom JS

## 屏幕截图

 * [[
 * Plugin Panel
 * [[
 * Plugin Panel expanded with help sidebar
 * [[
 * Warning on deactivation

## 安装

 1. Backup WordPress
 2. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 3. Activate the plugin through the ‘Plugins’ screen in WordPress

## 常见问题

### Who is this built for?

This is purely for developers to help streamline their development process by making
it easier to produce a settings page for their plugins.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Reusable Admin Panel」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Poly Plugins ](https://profiles.wordpress.org/polyplugins/)

[帮助将「Reusable Admin Panel」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/reusable-admin-panel)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/reusable-admin-panel/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/reusable-admin-panel/)，或通过[RSS](https://plugins.trac.wordpress.org/log/reusable-admin-panel/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/reusable-admin-panel/)。

## 更新日志

#### 1.0.7

 * Added: Ability to pass label attribute for those that don’t want the default 
   assigned name
 * Added: An optional step, min, and max attribute to number field
 * Added: Textarea rows attribute to allow larger height textarea
 * Added: Placeholder attribute to text, textarea, email, url, password, number,
   date and time fields
 * Added: Documentation for field usage to polyplugins.com/docs/reusable-admin-panel/
 * Added: Security enhancements
 * Updated: The color field to use sanitize_hex_color instead of sanitize_text_field
 * Bugfix: The “disabled” parameter was not available in dropdown type
 * Bugfix: Dropdown Toggle not setting equal label widths correctly
 * Bugfix: Support configuration is suppose to be optional
 * Bugfix: If type is left out of config, it provides no error.
 * Bugfix: If name is left out of config, it provides no error.

#### 1.0.6

 * Added: Textarea input
 * Added: Callback to handle errors. Used when conditionally adding fields and needing
   an error to display.
 * Bugfix: URL to have example url as placeholder instead of label
 * Bugfix: Dropdowns to have Select Option as placeholder instead of the label

#### 1.0.5

 * Updated: Removed plugin name from panel h2
 * Updated: Options panel to have a minimum height based on the height of tabs
 * Bugfix: Labels for input-group-text not resizing properly
 * Optimization: Restructured settings.js to be more readable

#### 1.0.4

 * Updated: Label styling to be next to the field for a cleaner look
 * Bugfix: Tab indexing
 * Bugfix: Handling of multiple fields for dropdown toggle
 * Bugfix: Dropdown field not full width

#### 1.0.3

 * Added: dropdown_toggle field can add additional fields under a dropdown which
   show/hide based on selected option
 * Added: Support for button fields
 * Added: Support for custom JS to take advantage of button fields and other custom
   needs
 * Added: Ability to use SweetAlert2 function in custom js
 * Added: Plugin name to section titles
 * Added: Ability to add classes to fields
 * Optimized: Sanitization method
 * Bugfix: Scroll to top on info button click

#### 1.0.2

 * Bugfix: Warning on initial activation
 * Bugfix: Bootstrap 5 toggle button not displaying

#### 1.0.1

 * Bugfix: Default logo not showing if config is not set

#### 1.0.0

 * Initial Release

## 额外信息

 *  版本 **1.0.7**
 *  最后更新：**9 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/reusable-admin-panel/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[developer](https://cn.wordpress.org/plugins/tags/developer/)
   [developer tool](https://cn.wordpress.org/plugins/tags/developer-tool/)
 *  [高级视图](https://cn.wordpress.org/plugins/reusable-admin-panel/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/reusable-admin-panel/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/reusable-admin-panel/reviews/)

## 贡献者

 *   [ Poly Plugins ](https://profiles.wordpress.org/polyplugins/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/reusable-admin-panel/)