该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

PHP Everywhere

描述

Attention: There have been reports of this plugin being impersonated by malware. Me as the author and this plugin will never engage in such activities. Please see this support ticket for more details and steps you can perform if you believe to be affected.

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
Spanish : IBIDEM GROUP
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个区块.

  • 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.

评价

2021年6月16日
Just removed this plugin because someone used it as an redirect malware for weird sites.
2021年6月3日
This plugin is being used to hack many wordpress sites.
2020年11月20日
When I updated the plugin and wordpress, for the latest versions the haphazard stopped working, and includes the message: There is a critical error on your site. I tried to revert to the previous versions and the error did not disappear .. it continued. and the page is unconfigured. Can you help me?
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.
阅读所有33条评价

贡献者及开发者

“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