跳到内容

Safe PHP Code Widget

v1.0

k0tik · 2019年1月9日 上架

Adds a secure and simple widget in which you can use PHP and JavaScript code. Also you can use unfiltered HTML or just Text. Admin Use Only.

正在使用
50+
评分
暂无
累计下载
2,910
最近更新
2019年1月9日
需要 WordPress 2.8+已测试到 5.0.32

贡献者

截图

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.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums