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)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](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://tw.wordpress.org/plugins/reusable-admin-panel/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/reusable-admin-panel/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/reusable-admin-panel/#installation)
 * [開發資訊](https://tw.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⌉[

Plugin Panel

[⌊Plugin Panel expanded with help sidebar⌉⌊Plugin Panel expanded with help sidebar⌉[

Plugin Panel expanded with help sidebar

[⌊Warning on deactivation⌉⌊Warning on deactivation⌉[

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**
 *  最後更新 **1 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.8**
 *  PHP 版本需求 ** 5.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/reusable-admin-panel/)
 * 標籤:
 * [admin](https://tw.wordpress.org/plugins/tags/admin/)[developer](https://tw.wordpress.org/plugins/tags/developer/)
   [developer tool](https://tw.wordpress.org/plugins/tags/developer-tool/)
 *  [進階檢視](https://tw.wordpress.org/plugins/reusable-admin-panel/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](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/)