plugin-icon

PHP Code Widget

投稿者: Samuel Wood (Otto)·
テキストウィジェットのように、PHP コードも挿入することができます。
評価
4.7/5
バージョン
2.4
有効インストール数
90K
最終更新日時
Mar 30, 2022

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

This can make it easier to migrate to a widget-based theme. However, this plugin should not be used long term, as anybody with access to edit the widgets on your site will be able to execute arbitrary PHP code.

All PHP code must be enclosed in the standard php opening and closing tags ( <?php and ?> ) for it to be recognized and executed.

Only users with the unfiltered_html role will be allowed to insert unfiltered HTML. This includes PHP code, so users without admin or editor permissions will not be able to use this to execute code, even if they have widget editing permissions.

無料Business プランを利用中
インストールすることで、WordPress.com の利用規約サードパーティプラグイン利用規約に同意したことになります。
最大テスト回数
WordPress 5.9.12
このプラグインをダウンロードして、 サイトに使用できます。