[WordPress] 外掛分享: Eval PHP

首頁外掛目錄 › Eval PHP
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
8,000+
安裝啟用
尚無評分
4895 天前
最後更新
0%
問題解決
WordPress 2.7+ v0.1 上架:2012-10-21

內容簡介

這個外掛可以在文章和博客數據中添加原生的 PHP 代碼。對於已登錄的用戶,會顯示 PHP 錯誤信息,以便調試 PHP 代碼。每個代碼塊都會像 PHP 函數一樣運行。可以將自己的功能添加到該插件中,並可以在其他調用中使用。對於文章作者,可以禁用 PHP 代碼的執行,因此管理員可以創建不同的功能,供作者使用。PHP 代碼的輸出包含在文章內。

特點

文章/頁面內的行內代碼
功能定義和包含
僅執行已定義的功能
將任何 PHP 錯誤消息傳遞給作者
禁用 PHP 錯誤消息
可以通過關鍵詞列表拒絕執行

需求

PHP 5.3.0 或更高版本

短代碼

對於行內代碼,您可以使用:

[evalphp] your code [/evalphp]

對於包含的代碼:

[evalphp include="your includes"]

include 參數是可選的,並且可以在兩個短代碼中使用。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Eval PHP」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

With this plugin can added native PHP code within article and blog data. For logged-in user PHP error messages are shown for debugging the PHP code. Each
code block is run like a PHP function. Own functions can be added to the plugin and can be included on other calls. For article writers the execution of
PHP code can be disabled, so the administrator can create different function, that can be used by the writers. Output of the PHP code are included
within the article.
Features

inline code on articles / pages
function define and include
only execution of defined functions
any PHP error message is passed to the author
disabling PHP error messages
execution can be denied by a keyword list

Requirements

PHP 5.3.0 or newer

Shortcode
For inline code you can use:
[evalphp] your code [/evalphp]
For included code:
[evalphp include="your includes"]
The include parameter is optional and can be used on both shortcodes.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon