BACK TO DIRECTORY



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.
Plugin Details
Active Installs
50Total Downloads
2,711Version
1.0Requires WP
2.8Requires PHP
—Tested Up To
5.0.27Added
2019-01-09Last Updated
2019-01-09 1:28am GMTRatings
5
0
4
0
3
0
2
0
1
0