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

PHP Everywhere

外掛說明

注意事項:升級至 3.0.0 是一項重大變更,這個新版本移除了 [php_everywhere] 短代碼及小工具。執行外掛設定提供的升級程式,能協助使用者將短代碼移轉至區塊編輯器的區塊。

This plugin enables PHP code everywhere in your WordPress instalation.

Using this plugin you can use PHP in:

  • 頁面
  • 文章
  • 資訊欄
  • 任何可以使用區塊編輯器區塊的位置

The plugin also supports different user restrictions and multiple PHP instances.

So feel free to just insert PHP in every part of your WordPress site.

Examples of use:

  • Create custom contact forms and process any kind of data or upload.
  • Customize every little detail of your WordPress installation.

設計

圖示及背景圖案設計:GiGATEAM Ltd.

本地化

美國英文及德國德文:Alexander Fuchs
西班牙西班牙文:IBIDEM GROUP
葡萄牙葡萄牙文:Luis Reis
塞爾維亞文:Borisa Djuraskovic
義大利文:Andrea Rosenthal Manetti

螢幕擷圖

  • 這個外掛的區塊編輯器區塊

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • PHP Everywhere

安裝方式

Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the plugin from plugins page. There is a usage guide on the plugins options page.

常見問題集

如何使用這個外掛?

請參考外掛設定頁面內的使用說明。

這個外掛是否支援多重 PHP 執行個體?

是。這個外掛提供的區塊編輯器區塊支援多重執行個體。

這個外掛是否支援區塊編輯器?

是。這個外掛提供區塊編輯器可用的區塊。

這個外掛造成網站停擺、無法正確執行、不相容等狀況。

這個外掛需要網站的主機託管服務提供商開放使用 eval() 函式,請確認你的網站可以使用這個函式。如需找到程式碼或任何不相容的問題,第一步應該啟用 WordPress 的偵錯模式。啟用偵錯模式後,隨時可以提出技術支援需求,並將偵錯記錄傳送給我們。

使用者評論

2023 年 1 月 5 日
For my ACF Pro projects that use meta boxes, I use FSE themes just because it is so much easier to create and edit custom templates for the project. However, Because FSE themes can only use blocks + HTML and CSS, this plugin is invaluable to me for some custom php coding. One suggestion that I have and I would love to see for extra security, is to have the option for this plugin's block to show up only in the templates, and not in posts, pages and CPTs. Of course I can only use TinyMCE and with ACF Pro disable the editor all together for the corresponding CPT, or simply remove the Post Content block from the appropriate templates, but having an option to limit this plugin to just the templates will be a more elegant solution. Nevertheless, this is a very important plugin for me.
2022 年 7 月 12 日 2 則留言
disabled an important plugin function without warning. With that I lost my codes and now I'm having to guess what I did years ago. He says he's built in a code converter for the new model, but the crap just doesn't work. As a result, I ended up losing everything.
2022 年 5 月 12 日
Just out of the blue stopped supporting the shortcode. No deprecation notice, just an update one day and poof gone! Not a professional way to develop something so many people rely on. Take a hint from all the other developers out there - my other software tells me years or even months in advance about the deprecation of a feature. Absolutely not cool.
2022 年 3 月 27 日
How dare you just kill the classic editor? And not even a decent interim solution is offered, only a list of which pages no longer work. This is really terrible. Everyone who was happy about a great connection to Digistore or something similar is suddenly faced with a problem - OR DON'T KNOW THAT THEY HAVE ONE! Really, weak and with that, everything by this author died for me. PS: Over 1 million users use the classic editor. Shutting out a million users isn't a brilliant move.
2022 年 2 月 20 日
Since version 3 this plugin stopped working with the classic editor and therefore it stopped working with several pagebuilders. The update was without any warnings. I changed to this one: insert-php-code-snippet
閱讀全部 46 則使用者評論

參與者及開發者

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

參與者

〈PHP Everywhere〉外掛目前已有 3 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈PHP Everywhere〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

3.0.0 – January 12, 2022

  • New: Added upgrade wizard
  • Improvement: Improved plugin settings
  • Improvement: Improved plugin permission management. Previous permissions have been reset to admin only to allow users to set fine-grained permissions.
  • Improvement: Improved Gutenberg block
  • Fix: Fixed multiple critical vulnerabilities. Thanks to Ramuel Gall/Wordfence for pointing them out.
    • Issue: Remote Code Execution by low-privileged users via shortcode; Estimated CVSS score: 9.9(Critical)
    • Issue: Remote Code Execution by low-privileged users via metabox; Estimated CVSS score: 9.9(Critical)
    • Issue: Remote Code Execution by low-privileged users via gutenberg block; Estimated CVSS score: 9.9(Critical)
  • Removed: Removed shortcode because of vulnerability
  • Removed: Removed options box because of vulnerability
  • Removed: Removed PHP everywhere widget because of vulnerability

2.0.3 – December 23, 2021

  • Fix: Fixed CSRF vulnerability in the plugin. Thanks for Rasif Afeef for pointing it out.

2.0.2 – August 03, 2020

  • Info: Clarified WordPress 5.5 compatibility and adjusted settings page
  • Info: Raised minimum PHP version to 5.6, but 7.3 iis recommended
  • Fix: Fixed fatal errors introduced by upgrading to or installing on WordPress 5.4 and up

2.0.1 – December 04, 2019

  • Info: Clarified WordPress 5.3 compatibility and adjusted settings page

2.0.0 – June 15, 2019

  • New: Added Gutenberg Block
  • New: Added option to disable Options box.
  • New: Added option to disable Gutenberg Block.

1.4.5 – March 14, 2019

  • Info: Clarified Gutenberg and WordPress 5.1 compatibility

1.4.3/4 – October 17, 2018

  • Fix: Fixed deprecated warning on PHP 7.2
  • Fix: Fixed error introduced in 1.4.3

1.4.2 – May 13, 2018

  • New: Added italien translation

1.4.1 – December 01, 2017

  • Fix: Added WordPress.org translation support

1.4 – November 26, 2017

  • New: Added WordPress.org translation support
  • Fix: Fixed security flaw where authenticated users were able to make themself administrators and execute php. Thanks @dandr3ss

1.3 – November 08, 2017

  • Fix: Fixed deprecation notice on PHP 7.1

1.2.5

  • minor bugfix for translations
  • lowered the plugins memmory footprint

1.2.4

  • added a portuguese translation

1.2.3

  • bug fix for WP 4.3.1, thanks thea2zbrand

1.2

  • added a german translation
  • added a serbian translation

1.1.2

  • fixed some minor bugs when creating a menu

1.1

  • added multiple PHP instances

1.0

  • release