PHP Everywhere

外掛說明

This plugin enables PHP code everywhere in your WordPress instalation.

Using this plugin you can use PHP in:

  • Widgets
  • Pages
  • Posts

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.
  • Generate user optimized content.
  • Customize every little detail of your WordPress installation.

Design

Icon & Wallpaper Design : GiGATEAM Ltd.

Translation

English and German : Alexander Fuchs
Portuguese : Luis Reis
Serbian : Borisa Djuraskovic
Italian : Andrea Rosenthal Manetti

螢幕擷圖

  • This is the plugins Gutenberg Block.
  • This is the plugins post and pages option. Paste your PHP or HTML into this option and place the shortcode where you want the plugin to appear.
  • This is the plugins multiple PHP instance functionality
  • The plugin looks like this while using the classic editor

適用於區塊編輯器

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

php-everywhere-block/php
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.

常見問題集

Q: How do I use this plugin?

A: You can find a usage guide on the options page

Q: Does this plugin support multiple PHP instances?

A: Yes, but you need to check for a position parameter using an if statements in your PHP snippet. The Gutenberg Block also supports multiple instances.

Q: Does this plugin support the Gutenberg editor?

A: Yes. The plugin provides a Gutenberg Block.

使用者評論

2020 年 9 月 15 日
Your plugin is excellent! I use it mainly the widget combined with Siteorigin page builder. One important improvement you can add is a reasonable editor for the snippets. For example, Ace is a plugged-in JS editor. It would reduce the possibility of simple errors and site crashes. Another improvement is a safety net that will prevent site crash when an error occurs. Thank you for the plugin Rafi
2020 年 8 月 3 日
Anyone else getting a critical error every time this plug in is used? It like completely doesn't allow me to acsess the whole page I'm working on but is the only helpful php code plugin I've found thus far.
2020 年 6 月 17 日
I've used this for years for VERY simple stuff, but lately I realized I couldn't do something simple like: $var = 10; include 'blah.php'; It crashes WP so badly you have to hack the DB just to access that post again. Horrid. I moved over to Insert PHP Code Snippet and the same code works flawlessly.
2019 年 12 月 16 日
Please add codemirror editor to the Gutenberg blocks for the php everywhere block. Once that is done, I believe this could be the best plugin I've ever used. I use this so much for so many things, but I have to edit my code in another editor, then copy and paste back, because I can't stand not having the codemirror editor, for formatting, line numbers, tabbing, editor auto height, etc.. error checking before saving would be a life saver as well. please, thanks!
2019 年 11 月 29 日
Does exactly what it says and is a crucial addition for any 3rd party functionality or data inclusion. Even works within the "code block" of the Avada theme (using the option box method as mentioned in the documentation) and similar theme/page builders. Very fast and friendly support. Great, and thanks.
閱讀全部 32 則使用者評論

參與者及開發者

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

參與者

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

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

對開發相關資訊感興趣?

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

變更記錄

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