Title: Safe PHP Code Widget
Author: k0tik
Published: <strong>January 9, 2019</strong>
Last modified: January 9, 2019

---

Search plugins

![](https://ps.w.org/safe-php-code-widget/assets/banner-772x250.png?rev=2008798)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/safe-php-code-widget/assets/icon-256x256.png?rev=2008818)

# Safe PHP Code Widget

 By [k0tik](https://profiles.wordpress.org/k0tik/)

[Download](https://downloads.wordpress.org/plugin/safe-php-code-widget.zip)

 * [Details](https://srd.wordpress.org/plugins/safe-php-code-widget/#description)
 * [Reviews](https://srd.wordpress.org/plugins/safe-php-code-widget/#reviews)
 *  [Installation](https://srd.wordpress.org/plugins/safe-php-code-widget/#installation)
 * [Development](https://srd.wordpress.org/plugins/safe-php-code-widget/#developers)

 [Support](https://wordpress.org/support/plugin/safe-php-code-widget/)

## Description

The usual Text widget allows you to insert arbitrary Text and/or HTML code. This
allows that too, but also parses any PHP or JavaScript code in the text widget and
executes it.

This plugin is based on “PHP Code Widget”, but now available for use by site administrators
ONLY, which makes it more secure.

All PHP code must be enclosed in the standard php opening and closing tags ( `<?
php` and `?>` ) for it to be recognized and executed. Also JavaScript code must 
be enclosed in the `<script>` and `</script>` tags, as usual.

## Screenshots

 * [[
 * The widgets screen showing a Safe PHP Code Widget in use.
 * [[
 * The output of the widget on the site.

## Installation

 1. Upload `safe-php-code-widget` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

No questions yet – no answers yet.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Safe PHP Code Widget” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ k0tik ](https://profiles.wordpress.org/k0tik/)

[Translate “Safe PHP Code Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/safe-php-code-widget)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/safe-php-code-widget/),
check out the [SVN repository](https://plugins.svn.wordpress.org/safe-php-code-widget/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/safe-php-code-widget/)
by [RSS](https://plugins.trac.wordpress.org/log/safe-php-code-widget/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * First version in the repository

## Meta

 *  Version **1.0**
 *  Last updated **7 years ago**
 *  Active installations **70+**
 *  WordPress version ** 2.8 or higher **
 *  Tested up to **5.0.25**
 *  Language
 * [English (US)](https://wordpress.org/plugins/safe-php-code-widget/)
 * Tags
 * [code](https://srd.wordpress.org/plugins/tags/code/)[html](https://srd.wordpress.org/plugins/tags/html/)
   [javascript](https://srd.wordpress.org/plugins/tags/javascript/)[php](https://srd.wordpress.org/plugins/tags/php/)
   [widget](https://srd.wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://srd.wordpress.org/plugins/safe-php-code-widget/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/safe-php-code-widget/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/safe-php-code-widget/reviews/)

## Contributors

 *   [ k0tik ](https://profiles.wordpress.org/k0tik/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/safe-php-code-widget/)