PHP Everywhere

I created this plugin because I have not found a Wordpress PHP plugin which is simple to use and provides a good user experience while being able to use PHP or HTML in Posts, Pages or Widgets. It is able to use multiple PHP instances and has built in role management. Since it’s start in 2014 more than 25.000 websites have installed the plugin and are happily using it to run their custom PHP code.

Download

About this plugin

This plugin enables embedded PHP code in pages, posts and Widgets. You can use it to create any interactive media that is not supported by WordPress without overloading your WordPress installation with plugins.

Features

Use PHP and HTML in

  • Widgets
  • Pages
  • Posts

Usage

Widgets

Simply activate the

PHP + HTML

Widget. in your sidebar and paste your PHP code including the PHP Tags like this:

<?php  echo("Hello, World!"); ?>

You code may contain HTML Elements or have multiple lines.

Posts & Pages

Edit or create a new post or page and simply put your PHP Code including the PHP Tags into the side options_box, which is labeled “PHP Everywhere”. Then put the

[php_everywhere]

shortcode where you want the code to appear. Your code may contain multiple lines or HTML Tags.

Multiple PHP instances

If you want to use multiple PHP instances use the shortcode with the instance parameter like this:

[php_everywhere instance="1"]

Your PHP snippet should look like this:

<?php
if($instance=="1")
{
echo("Number one!");
}
if($instance=="2")
{
echo("Number two!");
}
?>

Changelog

1.4.2 – May 13, 2018:

  • New: Addes italian 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 PHP7 deprecation notice

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

Translation