Title: Functionality
Author: Shea Bunge
Published: <strong>2013 年 8 月 6 日</strong>
Last modified: 2020 年 12 月 1 日

---

搜尋外掛

![](https://ps.w.org/functionality/assets/banner-772x250.png?rev=1841781)

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

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

# Functionality

 由 [Shea Bunge](https://profiles.wordpress.org/bungeshea/) 開發

[下載](https://downloads.wordpress.org/plugin/functionality.zip)

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

 [技術支援](https://wordpress.org/support/plugin/functionality/)

## 外掛說明

A functionality plugin is a way to separate what you might normally place in a theme’s`
functions.php` file, and put it in a plugin instead. It works the same way as a 
theme `functions.php` file, but is separate from the theme and so not affected by
theme upgrades, or tied to the theme so you loose all of your functions if you choose
to switch themes.

This plugin automates the process of creating a functionality plugin. Simply install
and activate this plugin, and your very own functionality plugin will be created
for you. You can then edit your functionality plugin and add snippets to it using
the quick link in the admin menu.

See [this WP Daily post](http://wpdaily.co/functionality-plugin/) for more information
on functionality plugins.

This plugin’s code is [available on GitHub](https://github.com/sheabunge/functionality).
Please feel free to fork the repository and send a pull request. If you find a bug
in the plugin, open an issue.

Serbian translation provided by [Ogi Djuraskovic from FirstSiteGuide.com](http://firstsiteguide.com).

## 螢幕擷圖

[⌊Editing the functionality plugin in the WordPress plugin editor⌉⌊Editing the functionality
plugin in the WordPress plugin editor⌉[

Editing the functionality plugin in the WordPress plugin editor

## 安裝方式

 1. Upload the `functionality` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Visit the ‘Plugins > Edit Functions’ menu in WordPress and enter filesystem credentials
    if necessary
 4. A functionality plugin will be created for you in `wp-content/plugins/functions/
    functions.php`
 5. Use the built-in WordPress file editor to edit your functionality plugin

#### Enable Styles Feature

 1. To enable the optional CSS styles feature, uncomment that line in the functions
    file, save the changes, and refresh the page
 2. Visit the new ‘Plugins > Edit Styles’ admin menu and enter filesystem credentials
    if necessary
 3. A stylesheet file will be created for you in `wp-content/plugins/functions/style.
    css`. This file will be automatically loaded on the front-end of your site.
 4. Use the built-in WordPress file editor to edit your stylesheet plugin

This plugin may be removed at any time, and your functionality plugin will remain
working and intact. You will, however, loose the quick edit links in the admin menu,
and automatic styles loading if that feature is enabled.

## 常見問題集

### My functionality plugin isn’t working!

First of all, backup all of the code in your functionality plugin. Then deactivate
and delete your functionality (it will have the same name as your site). To recreate
the functionality plugin, visit the ‘Edit Functions’ link in the WordPress admin
menu.

### Can I get rid of this plugin once my functionality plugin has been created?

Sure! Once this plugin has been activated and the functionality plugin created, 
all it does is create a link in the WordPress admin menu for easily editing the 
functionality plugin, and include your CSS code on the front-end of your site. If
you don’t want this, feel free to delete this plugin.

### When would I use this plugin over the Code Snippets plugin?

This plugin is more suited to people who only have a few snippets and prefer editing
a file to using a graphical interface. If you have more snippets, and like to be
organized, you may feel more at home using the [Code Snippets](https://wordpress.org/plugins/code-snippets)
plugin, which I also created.

### Isn’t this just like the Pluginception plugin?

Yes, in that they are both a plugin for creating plugins. However, this plugin is
a bit more easier to use and specific than Pluginception.

## 使用者評論

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

### 󠀁[Nice Idea, but does not seem to work](https://wordpress.org/support/topic/nice-idea-42/)󠁿

 [Firas Abd Alrahman](https://profiles.wordpress.org/doonfrs/) 2022 年 7 月 30 日
1 則留言

I was exactly looking for that, but I think the plugin is outdated.

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

### 󠀁[Easy to use](https://wordpress.org/support/topic/easy-to-use-3262/)󠁿

 [Dinesh Soni](https://profiles.wordpress.org/webinsight/) 2020 年 6 月 25 日 1 
則留言

Very easy to use and helpful

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

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-3744/)󠁿

 [Menn](https://profiles.wordpress.org/mennstudio/) 2016 年 9 月 3 日 1 則留言

Easy to learn and use.

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

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-3430/)󠁿

 [inovacrea](https://profiles.wordpress.org/inovacrea/) 2016 年 9 月 3 日 2 則留言

Perfect plugin, I discover it thanks to wootheme documentation, it will be very 
useful the day I need to update my theme. Just a little thing: I’m using WP Editor
to improve the quality of my plugin & theme editor, however when i’m editing the
new functions.php, the editor isn’t working, I have the original editor from wordpress.
Do you know why/how can I make it work? Thanks

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

### 󠀁[Simple to use](https://wordpress.org/support/topic/simple-to-use-88/)󠁿

 [Brandon Kraft](https://profiles.wordpress.org/kraftbj/) 2016 年 9 月 3 日 1 則
留言

I suggest this to folks I’m helping all the time who the barrier to write a plugin
from scratch seems too high. A nice way to intro people to plugin coding.

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

### 󠀁[Very good and super useful!](https://wordpress.org/support/topic/very-good-and-super-useful/)󠁿

 [Piotr Boguslawski](https://profiles.wordpress.org/piotr-boguslawski/) 2016 年 
9 月 3 日

Good job. Thank you.

 [ 閱讀全部 12 則使用者評論 ](https://wordpress.org/support/plugin/functionality/reviews/)

## 參與者及開發者

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

參與者

 *   [ Shea Bunge ](https://profiles.wordpress.org/bungeshea/)

〈Functionality〉外掛目前已有 2 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/functionality/contributors)
為這個外掛做出的貢獻。

[將〈Functionality〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/functionality)

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

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

## 變更記錄

#### 2.0.0

 * Reorganised internal structure of plugin
 * Improved formatting of default file content
 * Moved functionality plugin into its own subdirectory
 * Added feature for creating a CSS stylesheet
 * Improved integration with the WP Filesystem API

#### 1.2.1

 * Fixed bug preventing functionality plugin from being created on plugin activation

#### 1.2.0

 * Updated to use `wp_get_current_user()` instead of `get_currentuserinfo()`
 * Updated code structure to use a controller class
 * Added support for the WP Editor plugin

#### 1.1.1

 * Added Serbian translation thanks to [Ogi Djuraskovic from FirstSiteGuide.com](http://firstsiteguide.com)

#### 1.1

 * Fixed a spelling error when initializing the class
 * Only initialize the class on plugin activation
 * Move class to separate file
 * Used a more reliable method of functionality plugin activation

#### 1.0

 * Initial release

## 中繼資料

 *  版本 **2.0.0**
 *  最後更新 **6 年前**
 *  啟用安裝數 **1,000+**
 *  已測試相容的 WordPress 版本 **5.6.0**
 *  PHP 版本需求 ** 5.2 或更新版本 **
 *  語言
 * [Danish](https://da.wordpress.org/plugins/functionality/)、[English (US)](https://wordpress.org/plugins/functionality/)、
   及 [Ukrainian](https://uk.wordpress.org/plugins/functionality/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/functionality)
 * 標籤:
 * [functionality](https://tw.wordpress.org/plugins/tags/functionality/)[functions.php](https://tw.wordpress.org/plugins/tags/functions-php/)
 *  [進階檢視](https://tw.wordpress.org/plugins/functionality/advanced/)

## 評分

 4.6 星，滿分為 5 星

 *  [  10 個 5 星使用者評論     ](https://wordpress.org/support/plugin/functionality/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/functionality/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/functionality/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/functionality/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/functionality/reviews/?filter=1)

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

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

## 參與者

 *   [ Shea Bunge ](https://profiles.wordpress.org/bungeshea/)

## 技術支援

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

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

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://sheabunge.com/donate/)