[wordpress插件] Developer’s CodeBox开发人员的CodeBox

wordpress 插件 文章 2020-04-16 05:10 504 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

The Developer’s CodeBox is a WordPress plugin for developers!

开发人员的CodeBox是面向开发人员的WordPress插件!

It adds a textarea that allows you to try out HTML, PHP, or Javascript code.

它添加了一个文本区域,使您可以尝试HTML,PHP或Javascript代码。

It is integrated with the Easy Area syntax highlighting for extra usefulness!

它与Easy Area语法突出显示功能集成在一起,具有更多用途!

This is great for trying out code snippets before integrating them with your larger project or plugin.

这对于在将代码片段与较大的项目或插件集成之前试用它们非常有用。

It supports native PHP using proper syntax (eg: ), and best of all: it supports native WordPress functions like get_bloginfo(‘template_url’);

它使用正确的语法(例如)来支持本机PHP,并且最重要的是:它支持本机WordPress函数,例如get_bloginfo('template_url');

Why did I make this plugin?

我为什么要制作这个插件?

Often when writing a new plugin I want to test a particular function or code snippet and see if it works properly.

通常,在编写新插件时,我想测试一个特定的功能或代码片段,并查看其是否正常工作。

Usually I want to test it isolated from other code so I can hone in specifically on any errors or irregularities quickly.

通常,我想将其与其他代码隔离开来进行测试,这样我就可以快速地专门处理任何错误或异常情况。

This typically meant that I would copy the function, paste it into a blank plugin, add the necessary actions or filters so I could visualize its results in the admin area, activate it, then test it.

通常,这意味着我将复制该功能,将其粘贴到空白插件中,添加必要的操作或过滤器,以便可以在管理区域中可视化其结果,激活它,然后对其进行测试。

Well, I got tired of doing all that.

好吧,我厌倦了所有这些。

Enter the Developer’s CodeBox.

输入开发者的代码框。

Please note: the Developer’s CodeBox is NOT a sandbox.

请注意:开发人员的CodeBox不是沙盒。

Meaning code run in the CodeBox has the ability to do whatever it is you’re testing.

意味着在CodeBox中运行的代码可以执行您要测试的任何功能。

If you are testing a function to add a column to your mySQL database, it will actually be added!

如果您正在测试将列添加到mySQL数据库的功能,则实际上将添加该列!

That said, I recommend only using this plugin on a development server were testing code won’t do any damage.

也就是说,我建议仅在开发服务器上使用此插件,否则测试代码不会造成任何损害。

You’ve been warned!

您已被警告!

This plugin uses the syntax highlighting script found here: http://www.cdolivet.com/index.php?page=editArea

此插件使用以下语法突出显示脚本:http://www.cdolivet.com/index.php?page=editArea

安装步骤

Simply upload to your wp-content/plugins folder and activate from the plugins menu.

只需上传到您的wp-content / plugins文件夹,然后从插件菜单激活即可。

Nothing else to it!

没什么!

下载地址
https://downloads.wordpress.org/plugin/developers-codebox.1.1.zip
-EOF-

AI助手支持GPT4.0