BACK TO DIRECTORY

Safe PHP Code Widget

by k0tik

0.0
(0 ratings)

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 widgets screen showing a Safe PHP Code Widget in use.

The output of the widget on the site.

The output of the widget on the site.

Plugin Details

Active Installs
50
Total Downloads
2,711
Version
1.0
Requires WP
2.8
Requires PHP
Tested Up To
5.0.27
Added
2019-01-09
Last Updated
2019-01-09 1:28am GMT

Ratings

5
0
4
0
3
0
2
0
1
0