Title: Options Framework
Author: Devin Price
Published: <strong>2011 年 3 月 26 日</strong>
Last modified: 2017 年 11 月 1 日

---

搜索插件

![](https://ps.w.org/options-framework/assets/banner-772x250.jpg?rev=496961)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/options-framework/assets/icon-256x256.png?rev=977481)

# Options Framework

 作者：[Devin Price](https://profiles.wordpress.org/downstairsdev/)

[下载](https://downloads.wordpress.org/plugin/options-framework.1.8.5.zip)

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

 [支持](https://wordpress.org/support/plugin/options-framework/)

## 描述

The Options Framework Plugin makes it easy to include an options panel in any WordPress
theme. It was built so developers can concentrate on making the actual theme rather
than spending time creating an options panel from scratch. It’s free to use in both
commercial and personal projects, just like WordPress itself.

#### Options Include

 * text input
 * textarea
 * checkbox
 * select
 * radio button
 * upload (image uploader)
 * images (use images instead of radio buttons)
 * background (a set of options to define a background)
 * multicheck
 * color (a jquery color picker)
 * typography (a set of options to define typography)
 * editor

#### Learn More

Please visit [http://wptheming.com/options-framework-plugin](http://wptheming.com/options-framework-plugin)
for a full description of how to define and use the theme options.

## 屏幕截图

[⌊An example of the "Advanced Options" tab in the "Options Check" theme using this
plugin.⌉⌊An example of the "Advanced Options" tab in the "Options Check" theme using
this plugin.⌉[

An example of the “Advanced Options” tab in the “Options Check” theme using this
plugin.

## 安装

If your theme already has options enabled, they will show up under the appearance
menu.

If your theme doesn’t have options, you can define them to options.php of your theme
and they will instantly show up. For more on how to do this, visit [http://wptheming.com/options-framework-plugin](http://wptheming.com/options-framework-plugin).

## 常见问题

  How do I build options for my own theme?

Download the development version from GitHub [https://github.com/devinsays/options-framework-plugin](https://github.com/devinsays/options-framework-plugin)
and copy the “options-check” folder into your themes directory.

The “Options Check” theme is a blueprint for how to work with options. It includes
an example of every option available in the panel and sample output in the theme.

You can also watch the video screencast I have at [http://wptheming.com/options-framework-plugin](http://wptheming.com/options-framework-plugin).

  What options are available to use?

 * text input
 * textarea
 * checkbox
 * select
 * radio buttons
 * upload (image/file uploader)
 * images (use images instead of radio buttons)
 * background (a set of options to define a background)
 * multicheck
 * colorpicker
 * typography (a set of options to define typography)
 * editor

## 评价

![](https://secure.gravatar.com/avatar/c330588046f78fd8141dc5cffd484a1f92660ab0ef339cd94e65e9c93589d267?
s=60&d=retro&r=g)

### 󠀁[EL MEJOR DEL MUNDO MUNDIAL / The best of the hole world!!!!](https://wordpress.org/support/topic/el-mejor-del-mundo-mundial-the-best-of-the-hole-world-2/)󠁿

 [masterbip](https://profiles.wordpress.org/masterbip/) 2018 年 2 月 17 日

Lo vengo usando en su version template desde hace años, lo sigo, he donado porque
se lo merecen. Realmente es el mejor del mundo mundial. Ahora comenzare con el Plugin
para tener una version actualizada en mis proyectos. ————————– I’ve been using it
in its template version for years now. I follow it, I’ve donated because they deserve
it. It really is the best in the world. Now I will start with the Plugin to have
an updated version in my projects. GRACIAS TOTALES!

![](https://secure.gravatar.com/avatar/f328dd6e636ab07e344bf0583eda9c8069777933bdfa5bc95e0eb71fc7f11616?
s=60&d=retro&r=g)

### 󠀁[Best Theme Option plugin for WordPress](https://wordpress.org/support/topic/best-theme-option-plugin-for-wordpress/)󠁿

 [Saiful Islam](https://profiles.wordpress.org/codersaiful/) 2017 年 8 月 9 日

Options Framework is one of best WordPress theme. I like it very much.

![](https://secure.gravatar.com/avatar/cbc33fc10c68c21e407ca110e036f6917856d292727d6c3ebd214c45d7ab438f?
s=60&d=retro&r=g)

### 󠀁[Time saver](https://wordpress.org/support/topic/time-saver-31/)󠁿

 [Ishko](https://profiles.wordpress.org/ishko/) 2016 年 10 月 10 日

Great plugin. Follow the video from the dev and you’re good.

![](https://secure.gravatar.com/avatar/678138b4f19d23d43c1786e28662aee04e1850a5fde429a63f54eb78aa8b9f32?
s=60&d=retro&r=g)

### 󠀁[Makes devlopment simpler and easier](https://wordpress.org/support/topic/makes-devlopment-simpler-and-easier/)󠁿

 [Maruti Mohanty](https://profiles.wordpress.org/marutim/) 2016 年 9 月 3 日

I have been using this plugin for a long time now, but have been lazy in not reviewing
it. My bad… An awesome plugin, esp for developers like me. Make things simpler and
easier to develop.. Thanks a ton Devin

![](https://secure.gravatar.com/avatar/57d735cbbc517177c4da61232d6a34d4f397e97fb6be3a1226fded5a7698b4f7?
s=60&d=retro&r=g)

### 󠀁[One of the best theme options plugin out there](https://wordpress.org/support/topic/one-of-the-best-theme-options-plugin-out-there/)󠁿

 [tameroski](https://profiles.wordpress.org/tameroski/) 2016 年 9 月 3 日

Works fine and very simple to use.

 [ 阅读所有27条评价 ](https://wordpress.org/support/plugin/options-framework/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Devin Price ](https://profiles.wordpress.org/downstairsdev/)

「Options Framework」插件已被翻译至 5 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/options-framework/contributors)
为本插件所做的贡献。

[帮助将「Options Framework」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/options-framework)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.8.5

 * Update: Style headers to look nice in WordPress 4.4

#### 1.8.4

 * Update: Include link button in tinyMCE (props @rosswintle)

#### 1.8.3

 * Update: sanitization of info option and description field
 * Update: Sanitization of editor field

#### 1.8.2

 * Fix for translation textdomain

#### 1.8.1

 * Fix for colorpicker spacing
 * Better sanitization of upload option
 * Update translation .pot
 * Updated Portuguese translations by @pedro-mendonca
 * Indonesian translations props @aryaprakasa)
 * Use filtered values for optionsframework_admin_bar

#### 1.8.0

 * Increase default width of text inputs
 * Rename add_options_page function to resolve automatic theme check conflicts
 * Check isset for $value[‘desc’] in info option
 * Only load styles on options page (props @AndorChen)
 * Fix loading of translation files (props @weslly)
 * Update Portuguese (BR) translations (props @weslly)
 * Add Danish translations (props @Tosak)
 * Allow menu parent to be filtered (props @nvsnkv)

#### 1.7.1

 * Fix to use option name if set in options.php

#### 1.7.0

 * Update to class based plugin (large code refactor)
 * Drop color picker support for older versions of WordPress
 * Better support for new admin interface in WordPress 3.8
 * Allow option pages without tabs

#### 1.6.1

 * Fix for update notice location
 * Use selected and checked functions more consistently
 * Reuse media modal for uploads
 * Portuguese translations (props @xipasduarte)

#### 1.6.0

 * Allow media buttons in the editor option
 * JS/CSS should only load on options page
 * Menu tabs should be filterable
 * Menu settings filter
 * Fix js bindings for upload modal (props @themeblvd)

#### 1.5.2

 * Removed update routine to remove “optionsframework” post type

#### 1.5.1

 * Temporarily removed update routine

#### 1.5.0

 * Updated width of text input
 * New media uploader
 * Dropped custom post types for file attachments
 * Update routine to remove unused ‘optionsframework’ post types
 * Updated IDs for .tabs and .groups
 * Italian translations (andreabersi.com)
 * Russian translations (verha.net)
 * Swedish translations (kjeell.se)

#### 1.4.0

 * Add missing sanitization to typography color (@weplantmedia)
 * New colorpicker (props @mattweibe for getting this in WordPress core)
 * Farsi translations (@vahidd.com)
 * Added password option type (props @neojp)
 * Allow ids to passed to tabs (props @themeblvd)
 * Added optionsframework_after_validate hook (h/t @vanpop and @pryley)

#### 1.3.0

 * Allow options to save when set by theme customizer
 * Save checkbox options to boolean false rather than “0”
 * Added optionsframework_after hook
 * Hungarian translations by kardiweb.org

#### 1.2.0

 * Fix for font_size santization
 * Added internationalization support (@weslly)
 * Portuguese translations (@weslly)
 * Spanish translations (@sksmatt)
 * Make uploader post type non-public (@samargulies)
 * ID can now be passed on info option for styling purposes

#### 1.1.0

 * Added support for wp_editor
 * Updated textarea settings to allow rows parameter
 * Updated cursor:default for h3 metabox, props @yurifedorov
 * Filtering of typography options (@mattwiebe)
 * Updated methods for typography options

#### 1.0.0

 * Added filters for entire options array (props @inxilpro)
 * Added a filter for options.php location (props @mattwiebe)
 * Option header (h4) will not display in panel if name !isset (props @alepee)

#### 0.9.0

 * Load thickbox using site_url() to allow for https (props @samargulies)
 * Change santization to use $allowedposttags for textarea and info
 * Display notice if theme doesn’t support the Options Framework
 * Single checkboxes now use labels
 * CSS updates for formatting long labels
 * Allows dashes in the options id (props @mantone)
 * Uses add_theme_page over add_submenu_page (props @enile8)

#### 0.8.0

 * Saves tab states using local storage
 * Style updates WordPress 3.2 release
 * Added sanitization filter for info (of_sanitize_allowedtags)

#### 0.7.0

 * Added filtering for recognized arrays (like Font Face)
 * Using isset rather than !empty to return of_get_option
 * Significant updates for setting and restoring defaults
 * Background option outputs no-repeat rather than none

#### 0.6.0

 * Introduces validation filters (props @_mfields)
 * Better data sanitization and escaping (props @_mfields)
 * Updates labels in options-interface.php
 * Changes how checkboxes saved in database (“0” or “1”)
 * Stores typography, backgrounds and multichecks directly as arrays
 * For full description, see: http://wptheming.com/2011/05/options-framework-0-6/

#### 0.5.0

 * Fixed errors when more than one multicheck options is used
 * Updated optionsframework_setdefaults so defaults actually save on first run
 * Require that all options have lowercase alphanumeric ids
 * Added link to options from the WordPress admin bar

#### 0.4.0

 * Updated multicheck option to save keys rather than values
 * Unset default array options after each output in optionsframework_setdefaults

#### 0.3.0

 * White listed options for increased security
 * Fixed errors with checkbox and select boxes
 * Improved the multicheck option and changed format

#### 0.2.0

 * Uploaded to the WordPress repository

#### 0.1.0

 * Initial release

## 额外信息

 *  版本 **1.8.5**
 *  最后更新：**9 年前**
 *  活跃安装数量 **10,000+**
 *  WordPress 版本 ** 3.6 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [Chinese (China)](https://cn.wordpress.org/plugins/options-framework/) 、 [English (US)](https://wordpress.org/plugins/options-framework/)、
   [Italian](https://it.wordpress.org/plugins/options-framework/) 、 [Portuguese (Portugal)](https://pt.wordpress.org/plugins/options-framework/)、
   [Russian](https://ru.wordpress.org/plugins/options-framework/) 和 [Swedish](https://sv.wordpress.org/plugins/options-framework/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/options-framework)
 * 标签
 * [options](https://cn.wordpress.org/plugins/tags/options/)[theme options](https://cn.wordpress.org/plugins/tags/theme-options/)
 *  [高级视图](https://cn.wordpress.org/plugins/options-framework/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  25 条 5 星评价     ](https://wordpress.org/support/plugin/options-framework/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/options-framework/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/options-framework/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/options-framework/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/options-framework/reviews/?filter=1)

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

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

## 贡献者

 *   [ Devin Price ](https://profiles.wordpress.org/downstairsdev/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/options-framework/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://bit.ly/options-donate-2)