
內容簡介
WordPress Playground 讓您可以在瀏覽器中直接執行 PHP 程式碼,並提供 Interactive Code Block 外掛,讓使用者可即時檢視 PHP 程式碼的執行結果,進一步加深對 WordPress 開發的了解。此外採沙箱式執行,避免資訊安全疑慮。
問題與答案:
1. 在哪個平台上可以使用 WordPress Playground 提供的 Interactive Code Block 外掛?
- 在 WordPress 的文章或頁面編輯畫面中可以使用 Interactive Code Block 外掛。
2. 如何新增 Interactive Code Block?
- 按下「+」按鈕,搜尋「Interactive Code Block」後選取此外掛。即會在文章或頁面中注入一個新的 interactive code block。
3. 使用 Interactive Code Block 寫完 PHP 程式碼後該怎麼執行?
- 按下「Run」按鈕即可執行 PHP 程式碼。程式碼執行後的結果會顯示在程式碼區塊下方的輸出區。
4. Interactive Code Block 是否安全?
- Interactive Code Block 是沙箱式執行 PHP 程式碼,不在伺服器上執行,防止任何意外結果或安全風險產生。
5. Interactive Code Block 外掛的授權方式?
- Interactive Code Block 外掛採用 GNU General Public License v2.0 授權,允許自由使用、修改和分發。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
This WordPress block embeds WordPress Playground in your posts and pages. You can also include an interactive code editor to demonstrate and teach your readers how WordPress plugins are built.
Usage
Navigate to any post or page editing screen in WordPress.
Click the ‘+’ button to add a new block and search for ‘WordPress Playground Block’.
Select the WordPress Playground Block from the list of available blocks.
A new WordPress Playground Block will be inserted into your post or page. You can start typing PHP code directly into the block.
Click the ‘Run’ button to execute the code and see the results in the output area below the code block.
All features
Embed WordPress Playground
Log in automatically
Specify landing page
Create new post or page
Redirect to newly created post or page
Specify blueprint to apply on init
Enable/disable code editor
Make code editor read-only
Allow multiple files in code editor
Resources
Source code
WordPress Plugins page
WordPress Playground
WordPress Playground repository
Support
For any issues or questions about the WordPress Playground Block, please open a GitHub issue in the playground-tools repository.
This is an early preview to gather feedback and apply polish. This plugin isn’t yet a well-rounded and feature-complete solution.
License
The WordPress Playground Block Plugin is licensed under the GNU General Public License v2.0. This is a free software license that allows you to use, modify, and distribute the software, provided you adhere to its terms and conditions.
