
WordPress Plugin Development
Low Riskby @sickn33Verified Source
4.5568 installsv1.0.0Updated May 25, 2026
About
WordPress plugin development workflow covering plugin architecture, hooks, admin interfaces, REST API, security best practices, and WordPress 7.0 features: Real-Time Collaboration, AI Connectors, Abilities API, DataViews, and PHP-only blocks.
name: wordpress-plugin-development description: "WordPress plugin development workflow covering plugin architecture, hooks, admin interfaces, REST API, security best practices, and WordPress 7.0 features: Real-Time Collaboration, AI Connectors, Abilities API, DataViews, and PHP-only blocks." category: granular-workflow-bundle risk: safe source: personal date_added: "2026-02-27"
WordPress Plugin Development Workflow
Overview
Specialized workflow for creating WordPress plugins with proper architecture, hooks system, admin interfaces, REST API endpoints, and security practices. Now includes WordPress 7.0 features for modern plugin development.
WordPress 7.0 Plugin Development
Key Features for Plugin Developers
-
Real-Time Collaboration (RTC) Compatibility
- Yjs-based CRDT for simultaneous editing
- Custom transport via
sync.providersfilter - Requirement: Register post meta with
show_in_rest => true
-
AI Connector Integration
- Provider-agnostic AI via
wp_ai_client_prompt() - Settings > Connectors admin screen
- Works with OpenAI, Claude, Gemini, Ollama
- Provider-agnostic AI via
-
Abilities API
- Declare plugin capabilities for AI agents
- REST API:
/wp-json/abilities/v1/manifest - MCP adapter support
-
DataViews & DataForm
- Modern admin interfaces
- Replaces WP_List_Table patterns
- Built-in validation
-
PHP-Only Blocks
- Register blocks without JavaScript
- Auto-generated Inspector controls
When to Use This Workflow
Use this workflow when:
- Creating custom WordPress plugins
- Extending WordPress functionality
- Building admin interfaces
- Adding REST API endpoints
- Integrating third-party services
- Implementing WordPress 7.0 AI/Collaboration features
Workflow Phases
Phase 1: Plugin Setup
Skills to Invoke
app-builder- Project scaffoldingbackend-dev-guidelines- Backend patterns
Actions
- Create plugin directory structure
- Set up main plugin file with header
- Implement activation/deactivation hooks
- Set up autoloading
- Configure text domain
WordPress 7.0 Plugin Header
/*
Plugin Name: My Plugin
Plugin URI: https://example.com/my-plugin
Description: A WordPress 7.0 compatible plugin with AI and RTC support
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Developer Name
License: GPL2+
*/
Copy-Paste Prompts
Use @app-builder to scaffold a new WordPress plugin
Phase 2: Plugin Architecture
Skills to Invoke
backend-dev-guidelines- Architecture patterns
Actions
- Design plugin class structure
- Implement singleton pattern
- Create loader class
- Set up dependency injection
- Configure plugin lifecycle
WordPress 7.0 Architecture Considerations
- Prepare for iframed editor compatibility
- Design for collaboration-aware data flows
- Consider Abilities API for AI integration
Copy-Paste Prompts
Use @backend-dev-guidelines to design plugin architecture
Phase 3: Hooks Implementation
Skills to Invoke
wordpress-penetration-testing- WordPress patterns
Actions
- Register action hooks
- Create filter hooks
- Implement callback functions
- Set up hook priorities
- Add conditional hooks
Copy-Paste Prompts
Use @wordpress-penetration-testing to understand WordPress hooks
Phase 4: Admin Interface
Skills to Invoke
frontend-developer- Admin UI
Actions
- Create admin menu
- Build settings pages
- Implement options registration
- Add settings sections/fields
- Create admin notices
WordPress 7.0 Admin Considerations
- Test with new admin color scheme
- Consider DataViews for data displays
- Implement view transitions
- Use new validation patterns
DataViews Example
import { DataViews } from '@wordpress/dataviews';
const MyPluginDataView = () => {
const data = [/* records */];
const fields = [
{ id: 'title', label: 'Title', sortable: true },
{ id: 'status', label: 'Status', filterBy: true }
];
const view = {
type: 'table',
perPage: 10,
sort: { field: 'title', direction: 'asc' }
};
return (
<DataViews
data={data}
fields={fields}
view={view}
onChangeView={handleViewChange}
/>
);
};
Copy-Paste Prompts
Use @frontend-developer to create WordPress admin interface
Phase 5: Database Operations
Skills to Invoke
database-design- Database designpostgresql- Database patterns
Actions
- Create custom tables
- Implement CRUD operations
- Add data validation
- Set up data sanitization
- Create data upgrade routines
RTC-Compatible Post Meta
// Register meta for Real-Time Collaboration
register_post_meta('post', 'my_custom_field', [
'type' => 'string',
'single' => true,
'show_in_rest' => true, // Required for RTC
'sanitize_callback' =>
Compatible Tools
Claude CodeCursor
Tags
Backend
