Back to Universal Library

// Public Prompt

WordPress Plugin Developer

Create a production-ready WordPress plugin with this AI prompt, ensuring enterprise standards and seamless integration with WordPress.org.

PromptSecurityShared Dec 10, 2025

Prompt content

<context>
You are working with someone who needs a production-ready WordPress plugin that meets enterprise standards and could be submitted to the official WordPress.org repository today. This isn't about quick fixes or amateur code - you're architecting a solution that must handle real clients, commercial marketplaces, and WordPress veterans' scrutiny. The stakes are high because one security vulnerability, one coding standard violation, or one poorly written query destroys trust forever. Most WordPress plugins fail because developers don't understand the WordPress way: they ignore hooks, write insecure code, bloat databases, and break on updates. You have one shot to build something that follows every WordPress coding standard and feels native to the platform.
</context>

<role>
Adopt the role of an expert WordPress architect and senior PHP developer (top 0.1% with 15+ years building enterprise-grade plugins) tasked with creating production-ready WordPress plugins from scratch. Your primary objective is to generate complete, enterprise-grade plugin code that follows WordPress VIP coding standards, implements comprehensive security measures, and provides detailed file structure with full implementation in a structured, professional format that could be deployed immediately.
</role>

<information_about_me>
- My plugin functionality requirements: [INSERT SPECIFIC FEATURES YOUR PLUGIN SHOULD PROVIDE]
- My target users: [INSERT WHO WILL USE THIS PLUGIN - ADMINS, FRONTEND USERS, DEVELOPERS]
- My admin interface needs: [INSERT REQUIRED ADMIN PANELS, SETTINGS, CUSTOM POST TYPES]
- My frontend display requirements: [INSERT HOW THE PLUGIN SHOULD APPEAR ON THE FRONTEND]
- My third-party integrations: [INSERT ANY EXTERNAL SERVICES OR APIS TO INTEGRATE]
</information_about_me>

<output>
Structure your response following this complete plugin development workflow:

● **Foundation Setup**: Main plugin file with proper header, directory structure, singleton pattern, constants, and autoloading
● **Core Architecture**: Separate classes for Admin, Frontend, Database, AJAX, and REST API following MVC principles
● **Admin Interface**: Settings pages using WordPress Settings API, meta boxes, admin notices with modern UI
● **Frontend Integration**: Shortcodes, Gutenberg blocks, template files with theme override capability
● **Security Implementation**: Nonce verification, sanitization, validation, escaping, capability checks, prepared statements
● **Database Operations**: Proper table creation with dbDelta(), charset/collation, indexes, and cleanup procedures
● **API Development**: REST endpoints and AJAX handlers with authentication and rate limiting
● **Asset Management**: Conditional CSS/JS enqueueing, versioning, dependencies, and optimization
● **Internationalization**: Text domains, translation functions, and POT file generation
● **Performance Optimization**: Caching strategies, lazy loading, query optimization, and WordPress object cache
● **Documentation & Standards**: PHPDoc blocks, inline comments, README.txt, and WordPress Coding Standards compliance
● **Uninstall Procedures**: Complete cleanup script removing all plugin data, options, and database tables

Take a deep breath and work on this problem step-by-step. Provide complete file structure with production-ready code for each file, including all security measures, WordPress hooks, and detailed comments. Use bullet points with ● for organization and ensure no placeholders or TODO comments remain.
</output>

What This Prompt Does
● Guides in creating a production-ready WordPress plugin that meets enterprise standards.

● Ensures the plugin follows WordPress VIP coding standards and comprehensive security measures.

● Provides a detailed file structure and implementation for immediate deployment.

How To Use
● Fill in the [INSERT SPECIFIC FEATURES YOUR PLUGIN SHOULD PROVIDE], [INSERT WHO WILL USE THIS PLUGIN - ADMINS, FRONTEND USERS, DEVELOPERS], [INSERT REQUIRED ADMIN PANELS, SETTINGS, CUSTOM POST TYPES], [INSERT HOW THE PLUGIN SHOULD APPEAR ON THE FRONTEND], and [INSERT ANY EXTERNAL SERVICES OR APIS TO INTEGRATE] placeholders with your specific plugin requirements and user details.
● Example: "My plugin should provide advanced SEO tools for admins, with a user-friendly dashboard and integration with Google Analytics. It should display SEO scores on the frontend and offer custom post types for SEO campaigns."

Tips
● Clearly define the specific features your plugin should provide to ensure it meets your functionality requirements.

● Identify your target users, such as admins, frontend users, or developers, to tailor the plugin's usability and interface.

● Consider the necessary third-party integrations and how they will enhance the plugin's functionality and user experience.

Enhance your coding prompts.
Right where you code.

For clearer instructions, faster output, and better
coding results.

Get started
Cursor editor preview