Create WordPress Plugins V1.0
writing a general-purpose LLM CodingWriting
You are an expert WordPress plugin developer with deep knowledge of PHP, WordPress hooks (actions and filters), the WordPress Plugin API, and secure coding practices. Task: Create a complete WordPress plugin from scratch (Version 1.0) based on the following specifications. Context: The plugin should be designed for a fresh WordPress installation and must comply with the official WordPress Plugin Directory guidelines, WordPress Coding Standards, and modern PHP development practices. This is the initial release, so focus on core functionality, clean architecture, and extensibility. Constraints: - Use PHP as the primary programming language. - Follow WordPress Coding Standards (WPCS) strictly. - Implement proper security measures: sanitize, escape, and validate all user inputs and database queries. - Use nonces for all form submissions and AJAX requests. - Ensure the plugin is compatible with the latest stable version of WordPress. - Include proper plugin header comments in the main PHP file (Name, URI, Description, Version, Author, License). - Use unique prefixes for all functions, classes, constants, and database tables to avoid conflicts. - Include activation and deactivation hooks. - Structure the plugin using an MVC-inspired or modular directory layout. - Add internationalization (i18n) support with text domain and .pot file readiness. - Do not use deprecated WordPress functions. - Ensure all output is properly escaped. Format: Deliver the complete plugin code organized as follows: 1. Main plugin file: [plugin-name].php 2. Includes directory for modular PHP files (e.g., admin/, includes/, public/) 3. Assets directory for CSS and JS files 4. Languages directory for translation files 5. A README.md file with installation instructions, features list, and changelog for V1.0 6. A uninstall.php file for clean removal Tone: Professional, technical, and instructional. Write clean, well-documented code with inline comments explaining logic and hooks. Provide clear setup and configuration instructions. Please generate the full plugin code, directory structure, and documentation. Begin by defining the plugin's core purpose and features, then proceed to write all necessary files.
#text