Title: Safe PHP Code Widget
Author: k0tik
Published: <strong>2019 年 1 月 9 日</strong>
Last modified: 2019 年 1 月 9 日

---

搜尋外掛

![](https://ps.w.org/safe-php-code-widget/assets/banner-772x250.png?rev=2008798)

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

![](https://ps.w.org/safe-php-code-widget/assets/icon-256x256.png?rev=2008818)

# Safe PHP Code Widget

 由 [k0tik](https://profiles.wordpress.org/k0tik/) 開發

[下載](https://downloads.wordpress.org/plugin/safe-php-code-widget.zip)

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

 [技術支援](https://wordpress.org/support/plugin/safe-php-code-widget/)

## 外掛說明

The usual Text widget allows you to insert arbitrary Text and/or HTML code. This
allows that too, but also parses any PHP or JavaScript code in the text widget and
executes it.

This plugin is based on “PHP Code Widget”, but now available for use by site administrators
ONLY, which makes it more secure.

All PHP code must be enclosed in the standard php opening and closing tags ( `<?
php` and `?>` ) for it to be recognized and executed. Also JavaScript code must 
be enclosed in the `<script>` and `</script>` tags, as usual.

## 螢幕擷圖

[⌊The widgets screen showing a Safe PHP Code Widget in use.⌉⌊The widgets screen 
showing a Safe PHP Code Widget in use.⌉[

The widgets screen showing a Safe PHP Code Widget in use.

[⌊The output of the widget on the site.⌉⌊The output of the widget on the site.⌉[

The output of the widget on the site.

## 安裝方式

 1. Upload `safe-php-code-widget` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常見問題集

No questions yet – no answers yet.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ k0tik ](https://profiles.wordpress.org/k0tik/)

[將〈Safe PHP Code Widget〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/safe-php-code-widget)

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

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

## 變更記錄

#### 1.0

 * First version in the repository

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **8 年前**
 *  啟用安裝數 **90+**
 *  WordPress 版本需求 ** 2.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.0.26**
 *  語言
 * [English (US)](https://wordpress.org/plugins/safe-php-code-widget/)
 * 標籤:
 * [code](https://tw.wordpress.org/plugins/tags/code/)[html](https://tw.wordpress.org/plugins/tags/html/)
   [javascript](https://tw.wordpress.org/plugins/tags/javascript/)[php](https://tw.wordpress.org/plugins/tags/php/)
   [widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/safe-php-code-widget/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/safe-php-code-widget/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/safe-php-code-widget/reviews/)

## 參與者

 *   [ k0tik ](https://profiles.wordpress.org/k0tik/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/safe-php-code-widget/)