Title: Admin Form Framework
Author: Dan-Lucian Stefancu
Published: <strong>2014 年 1 月 7 日</strong>
Last modified: 2015 年 9 月 29 日

---

搜尋外掛

![](https://ps.w.org/admin-form-framework/assets/banner-772x250.png?rev=1255772)

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

![](https://s.w.org/plugins/geopattern-icon/admin-form-framework_df5858.svg)

# Admin Form Framework

 由 [Dan-Lucian Stefancu](https://profiles.wordpress.org/de-ce/) 開發

[下載](https://downloads.wordpress.org/plugin/admin-form-framework.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/admin-form-framework/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/admin-form-framework/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/admin-form-framework/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/admin-form-framework/#developers)

 [技術支援](https://wordpress.org/support/plugin/admin-form-framework/)

## 外掛說明

This plugin will help you quickly set up a standard WordPress settings page for 
your project, be it a theme or a plugin. That’s it!

Below is a “Hello World” piece of code to quickly get you an idea. It will generate
a standard settings page with a checkbox, complete markup, save logic.

    ```
    <?php 
     add_action( 'init', 'my_options_create_page', 11 );  function my_options_create_page() {   $options_page = new Aff();    // Add a checkbox   $options_page->add_field(     array(       'name'        => 'simple_checkbox',       'label'       => __( 'Is this plugin awesome?', 'textdomain' ),       'type'        => 'checkbox',       'description' => __( 'Help your users with a nice description.', 'textdomain' ),       'section'     => 'general', // Optional. Default section. You can add new ones as easily as adding a field.     )   );    // Render the page - this is mandatory   $options_page->init();  ?> 
    ```

#### There are a zillion options plugins out there. Why this?

All plugins will inevitably have their limitations, but Admin Form Framework is 
written in form of an object that can be easily extended to suit your needs. This
is what we use internally at [Dream Production](http://dreamproduction.com).

#### Get started

For a complete example / settings page template, open up the included my_options.
php file from `examples` folder.

## 安裝方式

 1. Upload to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Follow the instructions to get started with your first settings page.

## 常見問題集

#### Does this plugin do anything by itself?

No. This plugin is targeted at developers of WordPress themes and plugins.

#### Why not use WordPress Settings API directly?

The Settings API can be difficult to use by the novice developer. Writing the settings
pages means a lot of code that can be difficult to follow, and a lot of repetitive
HTML code. Admin Form Framework wraps it all up and allows you to quickly add the
options you need without thinking about the technicalities of defining, saving and
displaying the options on the options page.

#### When should I not use Admin Form Framework?

If you require a lot of custom markup or advanced validation, this plugin may get
in your way. However, you can easily extend the settings class with new option types
that satisfy your particular needs.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Admin Form Framework〉的開發相關工作。

參與者

 *   [ Dan-Lucian Stefancu ](https://profiles.wordpress.org/de-ce/)

[將〈Admin Form Framework〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/admin-form-framework)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/admin-form-framework/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/admin-form-framework/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/admin-form-framework/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/admin-form-framework/)。

## 變更記錄

#### 1.2.3

 * Added wysiwyg field type

#### 1.2.1

 * Externalized form and form fields

#### 1.2.0

 * Added file field type

#### 1.1.2

 * Allow saved options to be set externaly

#### 1.1.1

 * Multilingual options made optional

#### 1.1

 * Added WPML compatibility.

#### 1.0.3

 * Fixed Multisite forms.

#### 1.0.2

 * Added single / multisite compatibility.

#### 1.0.1

 * Fixed example and readme.

#### 1.0

 * First public release.

## 中繼資料

 *  版本 **1.2.3**
 *  最後更新 **11 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 3.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.3.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/admin-form-framework/)
 * 標籤:
 * [admin](https://tw.wordpress.org/plugins/tags/admin/)[custom](https://tw.wordpress.org/plugins/tags/custom/)
   [development](https://tw.wordpress.org/plugins/tags/development/)[options](https://tw.wordpress.org/plugins/tags/options/)
   [settings](https://tw.wordpress.org/plugins/tags/settings/)
 *  [進階檢視](https://tw.wordpress.org/plugins/admin-form-framework/advanced/)

## 評分

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

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

[查看全部使用者評論](https://wordpress.org/support/plugin/admin-form-framework/reviews/)

## 參與者

 *   [ Dan-Lucian Stefancu ](https://profiles.wordpress.org/de-ce/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/admin-form-framework/)