Your WordPress, your code, your rules.

Code Engine lets you write, manage, and execute PHP snippets safely, with hooks, REST API, scheduling, and AI-powered code generation. Think out of the box! 🤟

Pair it with Meow Workflow to run your snippets visually, as steps in a no-code automation you can build and watch run.

Code Engine plugs straight into AI Engine: switch on MCP for any function, and Claude, ChatGPT or Claude Code can call it directly. Your snippets stop being snippets and become superpowers. ✨

800 active installs
5.0 average rating

Safe by Design

Safe Mode and real-time validation protect your site from broken code.

AI-Powered

Generate, debug, and optimize snippets with AI Engine integration.

Automate Everything

Hooks, REST API endpoints, and scheduled tasks, all built in.

Developer-Friendly

Modern CodeMirror editor with highlighting, completion, and shortcuts.

Endless Possibilities

Extend WordPress with custom PHP, JavaScript, and API integrations.

REST Endpoints

Every snippet can become an endpoint for n8n, Make, or your own scripts.

How Code Engine works

A snippets plugin is usually a textarea and an on switch. Code Engine runs your PHP and JavaScript wherever you need it, and turns each function into three things at once.

  • A tool for your AIClaude, ChatGPT or Claude Code can run it over MCP, and with AI Engine Pro your chatbots can too.
  • A workflow stepDrop it into a visual workflow, chained with other actions.
  • An endpointn8n, Make or a cron job elsewhere can trigger it over REST.

Write one function and get all three, with no plugin to build, no REST route to register and no tool definition to wire by hand.

Needs WordPress 6.0+ and PHP 8.1+. The AI features need AI Engine (free) with an AI provider set up.

Free Version

  • Snippet Management

    Create, organize, and tag your PHP code snippets.

  • Safe Mode

    PHP is validated before it runs, and a snippet that throws a fatal error is switched off.

  • AI Code Generation

    Describe what you need and AI Engine writes the snippet, or refines the one you have.

  • REST API Endpoints

    Expose snippets as secure, token-authenticated API routes.

  • Scheduled Tasks

    Automate recurring tasks with WP-Cron.

  • Content Snippets

    Insert a PHP or JS snippet into any post with a shortcode, and pass it attributes.

  • Modern Code Editor

    Syntax highlighting, auto-completion, and Cmd+S.

  • Import & Export

    Migrate snippets between WordPress sites.

Pro Version

  • Everything from the Free Version

  • PHP Code Blocks

    Run PHP directly in posts and pages.

  • JS Code Blocks

    Embed JavaScript in your content.

  • Per-Post Allow List

    Allow PHP Code Blocks only on the posts you choose.

  • Get Pro, from $19/year

Screenshots

ImageCode Engine, snippets listCode Engine, editing a functionCode Engine, AI-assisted code generation

Reviews from WordPress

Image
Written by @harmr on WordPress Forums

Excellent Plugin for Developers and AI Integration

The Code Engine plugin is an incredibly useful tool for anyone looking to enhance their WordPress site. Its ability to manage PHP snippets in an intuitive way makes it easy to extend site functionality without much hassle. The integration with AI is a standout feature, especially when paired with the developer’s other plugin, The AI Engine, which I also recommend. The REST API support opens up automation possibilities that are simple to set up yet powerful in their impact. I’ve used it successfully with tools like Make.com to streamline workflows and save time. Overall, this plugin is a great choice for developers or anyone looking to blend automation, AI, and dynamic functionality into their WordPress site. A solid addition to any toolkit.

Image
Written by @richardapplegateit on WordPress Forums

This App is very helpful to my creative post.

My posts are never flawless, which is why I employ this application to save time. I am employed at three jobs and enjoy blogging at the same time, and I am committed to ensuring that my website is as resourceful and accommodating as possible.