Linux 软件免费装
Banner图

Code Engine - PHP Snippets, AI Functions & Automation for WordPress

开发者 TigrouMeow
更新时间 2026年7月18日 09:52
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

php snippets code ai automation

下载

0.5.5 0.2.9 0.4.0 0.4.2 0.2.8 0.5.3 0.0.1 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.3.1 0.3.2 0.3.3 0.4.1 0.0.2 0.4.4 0.4.3 0.4.5 0.4.6 0.4.7 0.4.8 0.4.9 0.3.0 0.3.9 0.5.0 0.5.1 0.5.2 0.5.4

详情介绍:

Code Engine is a snippets manager that doesn't stop at snippets. Yes, it runs your PHP and JavaScript exactly where and when you want: frontend, backend, on a schedule, or inside your content. But its real magic is what happens after you write a function: the same little piece of code instantly becomes a tool your AI chatbots can call, a step you can drag into a visual workflow, and an endpoint the outside world can trigger. One function, three superpowers. Most "code snippets" plugins stop at a textarea and a toggle. Code Engine treats your functions as first-class building blocks for the whole Meow Apps ecosystem, and for anything that can speak REST. Think out of the box, let your creativity flow, because the possibilities really are endless! ✨ For more, check the official website and come say hi on the Discord.

安装:

  1. Upload code-engine to the /wp-content/plugins/ directory (or install it from the Plugins screen).
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Head to Meow Apps → Code Engine and create your first snippet.
  4. (Optional) Install AI Engine to write snippets with AI and expose your functions as chatbot tools.
  5. (Optional) Install Workflow Engine to use your functions as visual workflow steps.

屏幕截图:

  • The editor: a Callable function with live syntax highlighting. One setting exposes it over REST and to AI Engine.
  • Settings: MCP support, a public REST API, Safe Mode, and developer options.
  • The payoff: your getOutdoorTemperature function running as a step inside a Workflow Engine workflow.
  • Whole workflows built from your own Code Engine functions, alongside AI Engine and WordPress steps.

升级注意事项:

Replace all the files. Nothing else to do.

常见问题:

What's the difference between a snippet and a Function?

A regular snippet (Persistent, Frontend, Backend, Scheduled, Content) runs automatically based on its scope. A Function is a named, callable snippet with arguments. It runs on demand, and that's exactly what makes it reusable as an AI tool, a workflow step, or a REST endpoint.

Do I need AI Engine or Workflow Engine to use Code Engine?

No. Code Engine is a fully capable snippets manager on its own. AI Engine unlocks AI-assisted writing and exposes your functions as AI tools; Workflow Engine turns your functions into visual steps. Each is optional, but together they're where the fun begins. 😊

How do my functions become AI tools?

With AI Engine active, Code Engine registers your functions through function calling and MCP. Your on-site chatbots can call them, and external AI agents (Claude, Claude Code, ChatGPT, OpenClaw) can too. Each argument you declare becomes a parameter the AI can fill in.

How do I call a snippet from Make.com, n8n, or a webhook?

Give the snippet a custom endpoint name and a token, then send a request to /wp-json/code-engine/v1/snippets-endpoint/your-endpoint with your arguments as JSON. By default, global snippets only run on whitelisted REST routes for safety. You can adjust this in Settings or with the mwcode_rest_whitelist and mwcode_rest_authorized filters.

Is it safe to run code like this?

Code Engine includes Safe Mode, which catches fatal errors and automatically disables the snippet that caused them, so a mistake won't bring your site down. PHP is also validated with a real parser before it's saved. As always, only run code you understand and trust.

Can I schedule a snippet to run automatically?

Yes. Use the Scheduled scope and pick an hour and minute; Code Engine runs it daily via WP-Cron, great for reports, cleanups, and syncs.

Can I move my snippets between sites?

Yes. Code Engine supports importing and exporting your snippets and settings, so you can back them up or move them to another site.

更新日志:

0.5.5 (2026/07/18) 0.5.4 (2026/07/16) 0.5.3 (2026/07/06) 0.5.2 (2026/06/30) 0.5.1 (2026/06/28) 0.5.0 (2026/06/26) 0.4.9 (2026/06/14) 0.4.8 (2026/06/13) 0.4.7 (2026/05/07) 0.4.6 (2026/04/25) 0.4.5 (2026/04/15) 0.4.3 (2026/03/09) 0.4.2 (2025/12/16) 0.4.1 (2025/12/03) 0.4.0 (2025/11/12) 0.3.9 (2025/10/10) 0.3.8 (2025/09/30) 0.3.7 (2025/09/01) 0.3.6 (2025/08/16) 0.3.5 (2025/07/23) 0.3.4 (2025/07/06) 0.3.3 (2025/06/29) 0.3.2 (2025/06/03) 0.3.1 (2025/05/22) 0.3.0 (2025/05/01) 0.2.9 (2025/02/17) 0.2.8 (2025/01/04) 0.2.7 (2024/12/06) 0.2.6 (2024/11/04) 0.2.5 (2024/10/17) 0.2.4 0.2.2 0.2.1 0.2.0 0.1.9 0.1.8 (2024/07/16) 0.1.6 (2024/07/07) 0.1.5 (2024/06/23) 0.1.4 (2024/06/15) 0.1.3 0.1.2 0.1.1 0.1.0 0.0.9 0.0.8 0.0.7 0.0.6 0.0.5 0.0.2 0.0.1