wordpress-plugin-core

Generate secure WordPress plugins with ABSPATH checks, nonces, and prepared statements.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill wordpress-plugin-core-ovachiever
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wordpress-plugin-core
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/wordpress-plugin-core
Command: npx skills add https://github.com/ovachiever/droid-tings --skill wordpress-plugin-core-ovachiever

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) and scripts (resource) components.

What problem does it solve?

Provides core WordPress plugin patterns focusing on security, architecture, REST API, and admin UX. Includes templates for Simple, OOP, and PSR-4 approaches.

Core Features & Use Cases

  • Security Foundation: ABSPATH checks, nonces, prepared statements
  • Plugin Architecture: Simple, OOP, and PSR-4 patterns
  • WP APIs: Settings API, REST API, AJAX, WPDB patterns
  • Activation/Uninstall: proper lifecycle hooks and cleanup
  • Templates & Examples: admin pages, REST endpoints, AJAX handlers

Quick Start

Scaffold a new plugin from the Simple or PSR-4 templates and adapt to your needs.

Frequently Asked Questions about wordpress-plugin-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a secure WordPress plugin from scratch?

Secure WordPress plugin development requires implementing ABSPATH checks, nonce verification, data sanitization, output escaping, capability checks, and prepared statements for database queries. This Skill provides structured templates in Simple, OOP, and PSR-4 architectures with built-in security patterns to scaffold plugins that meet WordPress standards.

What's the best way to implement REST API endpoints in a WordPress plugin?

WordPress REST API endpoints require proper authentication, nonce verification, and capability checks. This Skill includes patterns and templates for building secure REST endpoints that follow WordPress conventions, with guidance on input sanitization and output escaping for API responses.

How do I handle AJAX requests securely in WordPress?

Secure AJAX in WordPress requires nonce verification, capability checks, and data sanitization before processing. This Skill provides AJAX handler templates demonstrating proper security checks and prepared statement patterns to prevent injection vulnerabilities.

Can I use the Settings API with different WordPress plugin architectures?

Yes. The Settings API works across Simple, OOP, and PSR-4 plugin architectures. This Skill includes templates for each approach, showing how to register settings, sanitize input, and build admin pages that comply with WordPress security and UI standards.

What do I need to know about plugin activation and uninstallation hooks?

WordPress plugin lifecycle requires proper activation and uninstallation hooks to set up database tables, options, and cleanup routines. This Skill covers structured patterns for registration hooks and safe data removal to prevent orphaned database entries.

Should I use prepared statements for all WordPress database queries?

Yes. Prepared statements prevent SQL injection and are a security requirement for all database interactions. This Skill demonstrates WPDB prepared statement patterns using placeholders and escaping functions across different plugin architectures.