Code Engine – PHP Snippets, AI Functions & Automation for WordPress
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. Quick Intro Hello! ☀️ I built Code Engine because I was tired of pasting mystery snippets into functions.php and praying. I wanted a place where small bits of code are organized, safe, AI-assisted, and reusable everywhere. Here’s the idea. You write a function (or let the AI write it for you from a plain-English description). That function immediately shows up in three places: AI Engine: your chatbots and MCP clients (Claude, ChatGPT, Claude Code) can call it as a tool, with real arguments. Ask “how many orders shipped today?” and your chatbot runs your function to answer. Workflow Engine: your function appears in the step picker as its very own block. Drag it onto the canvas, wire it between an AI step and a Slack step, done. No glue code. REST / External tools: give it a secure endpoint and a token, then trigger it from Make.com, n8n, Zapier, a cron job, or a webhook. You never wrote an “integration.” You just wrote a function. Code Engine did the rest. 🤝 Core Modules 🧩 Snippets Manager Backend, Frontend, Persistent, Scheduled, Functions, and in-content (PHP/JS) snippets, all in one clean dashboard with tags, search, scope filters, and priorities. 🪄 AI-Assisted Coding Describe what you want in plain English and let AI Engine write the snippet: code, name, arguments, and scope included. Refine existing code or implement it straight from your comments. 🤖 Functions as AI Tools Every Function snippet becomes a function-calling tool and an MCP tool, so your AI Engine chatbots (and external AI agents) can actually do things on your site, not just talk. 🔀 Functions as Workflow Steps Workflow Engine surfaces each of your functions as its own draggable step. Your custom logic becomes a first-class citizen on the automation canvas. 🌐 External Access (REST) Expose any runnable snippet through a secured REST endpoint with a bearer token. Perfect for Make.com, n8n, webhooks, and scheduled external jobs. 🛡️ Safe Mode A snippet that throws a fatal error is automatically caught and disabled before it can take your site down. Code with confidence. ⏰ Scheduling Run a snippet daily at a chosen time via WP-Cron (reports, cleanups, syncs) without touching the server crontab. 🧱 Code Blocks & Shortcodes (Pro) Drop PHP or JS straight into a post or page with a Gutenberg block or the [code-engine] shortcode, with safety guards. 🧩 Snippets, the way they should be Code Engine organizes your code by scope, so each snippet runs exactly where it belongs: Persistent: runs everywhere (frontend and backend). Your everyday “add this to functions.php” code, but managed. Frontend: runs only on the public site. Backend: runs only in the admin. Function: a named, callable function with typed arguments and defaults. This is the reusable building block (see below). Scheduled: runs on a WP-Cron schedule, at the hour and minute you pick. Content (PHP / JS): runs inside a specific post or page, via a Gutenberg Code Block or the [code-engine] shortcode (Pro). Everything is searchable, taggable, sortable by priority, and importable/exportable. The CodeMirror editor gives you proper syntax highlighting and keyboard shortcuts (Cmd+S to save, Cmd+Enter to run). A nikic/php-parser pass validates your PHP before it ever runs. 🪄 Let AI write it for you Don’t feel like writing the boilerplate? Describe the snippet in plain language and Code Engine, powered by AI Engine, generates the whole thing: the code, a sensible name, a description, the right scope, and, for functions, the argument list with names, types, and defaults. Already have code? Ask the AI to modify it from a prompt, or write a few comments describing what you want and let it fill in the implementation. It’s pair programming, right inside your dashboard. ✨ The big idea: write once, use everywhere This is what makes Code Engine different. A Function snippet is not just code you call from other code. It’s a reusable capability that the rest of your stack can plug into. The moment you save it, the same function is available in three places at once: 1. As an AI tool, for chatbots and AI agents With AI Engine active, your functions are exposed through function calling and over MCP (Model Context Protocol). Your on-site chatbot can run them mid-conversation, and external AI agents (Claude, Claude Code, ChatGPT, OpenClaw) can call them too. Want a chatbot that checks stock, looks up a booking, or kicks off a process? Write the function; the chatbot gains the skill. 2. As a workflow step, for automation With Workflow Engine, every active function shows up in the Add-step picker as its own block, named after your snippet, with one input per argument. Drag it onto the canvas and wire it between other steps: an AI step that summarizes, your function that saves, a Social Engine step that posts. There’s also a generic “Execute snippet (by ID / by name)” step when you want to call one dynamically. You never write integration code; your function is the integration. 3. As a REST endpoint, for the outside world Give a snippet a custom endpoint name and a bearer token, and it’s instantly callable from anywhere: POST /wp-json/code-engine/v1/snippets-endpoint/your-endpoint Pass arguments as JSON in the body, secure it with a token, and trigger it from Make.com, n8n, Zapier, GitHub Actions, or a humble cron job. Automation without a middleware bill. 🛡️ Safe by default Running arbitrary code is powerful, so Code Engine takes safety seriously: Safe Mode catches fatal errors and auto-disables the offending snippet, so a typo never white-screens your site. REST whitelisting means global snippets only run on trusted REST routes by default, so you choose what to open up. Per-snippet tokens secure your external endpoints. Validation with a real PHP parser before code is saved. For developers who want fewer guardrails, there’s a “Bypass REST Security” option and filters (mwcode_rest_authorized, mwcode_rest_whitelist) to tailor exactly what’s allowed. Works beautifully with the Meow Apps family Code Engine is one engine in a connected set, each one useful alone, magical together: AI Engine: chatbots, content generation, and MCP. Turns your functions into AI tools. Workflow Engine: visual automation. Turns your functions into draggable steps. SEO Engine: smart, lightweight AI SEO. Social Engine: schedule and automate social posts. Why Code Engine? Reusable, not throwaway Other snippet plugins give you a place to paste code. Code Engine gives you a place to build capabilities that your AI, your workflows, and your external tools can all use. Native to WordPress Clean, fast, and built the WordPress way. No clunky external dashboards, no bloat. AI-native Write snippets with AI, expose them to AI. The whole loop lives in your wp-admin. Developer friendly REST API, MCP tools, function calling, scheduling, import/export, and plenty of filters to hook into. Cared for Part of the Meow Apps family, with regular updates and a real human behind it. 💕
Top keywords
- code32×2.48%
- engine25×1.94%
- ai22×1.71%
- function18×1.40%
- rest13×1.01%
- snippet13×1.01%
- code engine11×0.85%
- functions11×0.85%
- write10×0.78%
- runs9×0.70%
- snippets9×0.70%
- step9×0.70%
Infy SEO – Image SEO Optimizer
Rank higher on Google Images without touching your media library by hand. Image SEO Optimizer writes WCAG-compliant alt text, SEO-friendly filenames and titles for thousands of WordPress images at once — using your choice of Gemini, Claude or GPT. Rename safely: every filename change is auto-301-redirected. Looking for more features? Check out Image SEO Optimizer Pro. Why Image SEO Optimizer? Images are crucial for SEO, but manually optimizing hundreds of images is time-consuming. Our plugin solves this by: Saving Hours of Manual Work – AI optimizes images in seconds Improving SEO Rankings – Search engines love properly optimized images Enhancing Accessibility – AI-generated alt text helps screen readers Smart Filename Management – SEO-friendly filenames with automatic URL updates across page builders Key Features AI-Powered Metadata Generation Generate SEO-friendly filenames automatically Create descriptive alt text (accessibility + SEO) Generate optimized image titles Extract relevant keywords Multiple AI Providers Google Gemini – Gemini 3.1 Flash-Lite, Gemini 3.5 Flash-Lite OpenAI – GPT-4.1 mini Anthropic Claude – Claude 4.5 Haiku Switch between providers anytime Use your own API keys (full control over costs) Or, on WordPress 7.0+, use WordPress AI Connectors (Settings → Connectors) — no plugin API key required Page Builder Integration Gutenberg – Full WordPress Block Editor support Elementor – Complete integration with automatic URL updates WPBakery – Seamless integration Visual Composer – Full compatibility Uncode – Full compatibility Divi – Full support across page content, Divi Library, and Theme Builder Automatic URL updates when renaming files No broken images after filename changes SEO Features Real-time SEO score calculation (0-100 scale) 6-component scoring algorithm (100 points total) Detailed score breakdown by field Visual indicators for optimization status Track optimization progress across your media library Smart Dashboard Visual media library overview See optimization status at a glance Filter by optimized/unoptimized images Search and sort capabilities Image usage tracking (where images are used) Usage Tracking & Analytics Monitor API usage by provider Track costs and requests Daily/monthly usage statistics Export usage data Visual charts and graphs Cost estimation tools 301 Redirect Protection Automatic 301 redirects when images are renamed Preserves SEO value — no broken links from search engines, social shares, or external sites Covers all image sizes (thumbnails, crops, originals) Smart redirect chain resolution (A→B→C becomes A→C) Hit tracking to monitor redirect usage Configurable expiry (6, 12, 24 months, or never) Zero impact on normal page loads — only activates for old image URLs Advanced Features 60+ Languages – Generate metadata in any supported language Changelog Tracking – Complete audit trail of all changes Inline Editing – Edit AI suggestions before saving Encrypted API Keys – Secure storage using WordPress salts Rate Limiting – Prevent excessive API usage Developer-Friendly REST API (infyp/v1) — optimize images and manage settings programmatically 38 action hooks for workflow integration 80 filter hooks for customization Clean, documented codebase WordPress Coding Standards compliant Extensible architecture Well-documented API How It Works Install & Activate – Quick installation from WordPress.org Add API Key – Add at least one AI provider API key Configure Settings – Choose your preferred AI model and language Optimize Images – Single-click optimization or bulk operations Monitor Results – Track SEO scores and usage statistics Perfect For Bloggers – Optimize featured images and content automatically Photographers – Proper image descriptions at scale Agencies – Manage multiple client sites efficiently Content Creators – Focus on content, not manual image optimization Anyone with Images – Every WordPress site needs image SEO What Makes Us Different Unlike basic image SEO plugins, Image SEO Optimizer: Actually “Sees” Images – AI vision models understand image content Natural Descriptions – Not keyword-stuffed robotic text Context-Aware – Understands your content and brand Multilingual Native – True multilingual support, not translations Smart URL Updates – Prevents broken images across page builders 301 Redirect Protection – Automatic redirects preserve SEO when renaming files Full Transparency – You own your API keys, control your costs Privacy & External Services This plugin connects to third-party AI services that you configure with your own API keys. Images are sent to these services for analysis and metadata generation: Google Gemini API * Service: Google AI image analysis * Privacy Policy: https://policies.google.com/privacy * Terms of Service: https://policies.google.com/terms * When used: When you select Gemini as your AI provider and optimize images OpenAI API * Service: OpenAI image analysis * Privacy Policy: https://openai.com/privacy * Terms of Service: https://openai.com/terms * When used: When you select OpenAI as your AI provider and optimize images Anthropic Claude API * Service: Anthropic Claude image analysis * Privacy Policy: https://www.anthropic.com/privacy * Terms of Service: https://www.anthropic.com/terms * When used: When you select Claude as your AI provider and optimize images Important Notes: * Images are ONLY sent to the service you configure * You use your own API keys (you control the relationship with the provider) * No automatic data collection by plugin authors * No tracking or analytics without your explicit consent * You can review each provider’s privacy policy before using their service Optional Newsletter & Telemetry (Opt-in Only) During the setup wizard, you can optionally subscribe to our newsletter. If you choose to opt in, we collect the following non-personal site information to help improve our plugin: Environment Data: * WordPress version, PHP version, MySQL version * Server software, memory limit * Site URL, locale, timezone * Multisite status, WP_DEBUG status Plugin & Theme Data: * Image SEO Optimizer plugin version * Active theme name and version * List of active plugins (names only) * Detection of common plugins (WooCommerce, Yoast, Rank Math, Elementor) Content Statistics: * Total media library count * Image count (images only) * Post, page, and product counts User Data (from your WordPress account): * Email address (for newsletter delivery) * Display name * WordPress user role This data is: * Only collected if you explicitly check the opt-in checkbox * Sent to: https://infypress.com/wp-json/ai-products/v1/newsletter/subscribe * Used to improve our plugin and send relevant updates * Never sold to third parties * You can unsubscribe at any time For more details, see our Privacy Policy. Google Search Console Integration This plugin includes an optional Google Search Console integration that connects to several Google services: Google OAuth 2.0 — Used to authorize access to your Google Search Console account. Endpoints: accounts.google.com, oauth2.googleapis.com Data sent: OAuth authorization codes and refresh tokens for token exchange When used: When you connect or reconnect to Google Search Console, and periodically to refresh access tokens Privacy Policy: https://policies.google.com/privacy Terms of Service: https://policies.google.com/terms Google Search Console API — Used to retrieve your site’s search performance data, URL inspection results, and sitemap information. Endpoints: googleapis.com/webmasters/v3, searchconsole.googleapis.com/v1 Data sent: OAuth access token, your site URL, date ranges, and URLs for inspection When used: When you view Search Console data within the plugin dashboard Privacy Policy: https://policies.google.com/privacy Terms of Service: https://policies.google.com/terms InfyPress OAuth Proxy — When using the “Quick Connect” method to connect Google Search Console, the authorization flow is routed through our proxy server. This proxy securely holds the Google OAuth client secret so it is never shipped in the plugin code. Endpoint: infypress.com/wp-json/ai-products/v1/gsc Data sent: Proxy authorization code, refresh token, and your site URL When used: Only when you use the “Quick Connect” method for Google Search Console (not when using custom credentials) Privacy Policy: https://infypress.com/privacy/ Developer Information Image SEO Optimizer provides 118 hooks (38 actions + 80 filters) for developers to extend its functionality. Below are the most commonly used hooks. For the complete reference, see our documentation: Actions Reference Filters Reference Key Hooks Filters: infyp_allowed_post_types – Filter which public post types are shown in the image list. Default: all public post types registered in WordPress. infyp_image_context – Add custom context to AI prompts (e.g. product data). Parameters: $prompt_addon, $image_id, $context_type. infyp_supported_mime_types – Filter supported image MIME types. Default: ['image/jpeg', 'image/png', 'image/webp', 'image/gif']. infyp_register_pagebuilder_adapters – Register additional page builder adapters. Parameters: $adapters. infyp_image_usage_post_ids – Find additional post IDs where an image is used. Parameters: $post_ids, $image_id, $image_url. infyp_table_columns_after_title – Add custom columns to the image list table. Parameters: $columns. Actions: infyp_after_image_upload – Fires after a new image is uploaded and processed. Parameters: $attachment_id, $metadata. infyp_filename_updated – Fires after filename URL references are updated across content. Parameters: $post_id, $url_map, $results. infyp_before_settings_cards / infyp_after_settings_cards – Add custom cards to the Settings page. Code Example // Customize which post types appear in the image filter add_filter( 'infyp_allowed_post_types', function( $types ) { // Remove a type you don't want unset( $types['custom_type'] ); return $types; } ); // Add custom context to AI prompts add_filter( 'infyp_image_context', function( $context, $image_id, $type ) { $parent_id = wp_get_post_parent_id( $image_id ); if ( $parent_id && get_post_type( $parent_id ) === 'portfolio' ) { $context .= "\nThis image is from a portfolio project."; } return $context; }, 10, 3 ); Requirements WordPress 6.1 or higher PHP 8.0 or higher MySQL 5.7 or higher At least one AI provider API key (OpenAI, Google Gemini, or Anthropic Claude) — or, on WordPress 7.0+, an AI connector configured under Settings → Connectors 128MB PHP memory limit recommended cURL or similar for API requests Support & Links Documentation WordPress Support Forum Feature Requests Report Bugs