Skip to main content Home Creators beko2210 firstbrain wordpress-plugin-development
wordpress-plugin-development 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.
Jump to install Skills Marketplace Discover and explore AI skills built by the community.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Copy promptShow prompt details A direct command skips the review prompt. Inspect the source before running it.
npx skills add https://github.com/BEKO2210/Firstbrain --skill wordpress-plugin-developmentThe command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
Download Zip Downloading... More from this repository
Related occupations SOC
Based on SOC occupation classification
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. type skill created 2026-02-27T00:00:00.000Z domain productivity category automation risk safe source personal tags ["skill","productivity","automation","wordpress","plugin"]
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.providers filter
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
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 scaffolding
backend-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
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 = [];
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 design
postgresql - 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_post_meta ('post' , 'my_custom_field' , [
'type' => 'string' ,
'single' => true ,
'show_in_rest' => true , // Required for RTC
'sanitize_callback' => 'sanitize_text_field' ,
]);
register_term_meta ('category' , 'my_term_field' , [
'type' => 'string' ,
'show_in_rest' => true ,
]);
Copy-Paste Prompts Use @database-design to design plugin database schema
Phase 6: REST API
Skills to Invoke
api-design-principles - API design
api-patterns - API patterns
Actions
Register REST routes
Create endpoint callbacks
Implement permission callbacks
Add request validation
Document API endpoints
WordPress 7.0 REST API Enhancements
Abilities API integration
AI Connector endpoints
Enhanced validation
Copy-Paste Prompts Use @api-design-principles to create WordPress REST API endpoints
Phase 7: Security
Skills to Invoke
wordpress-penetration-testing - WordPress security
security-scanning-security-sast - Security scanning
Actions
Implement nonce verification
Add capability checks
Sanitize all inputs
Escape all outputs
Secure database queries
WordPress 7.0 Security Considerations
Test Abilities API permission boundaries
Validate AI connector credential handling
Review collaboration data isolation
PHP 7.4+ requirement compliance
Copy-Paste Prompts Use @wordpress-penetration-testing to audit plugin security
Phase 8: WordPress 7.0 Features
Skills to Invoke
api-design-principles - AI integration
backend-dev-guidelines - Block development
AI Connector Implementation
add_action ('save_post' , 'my_plugin_generate_ai_summary' , 10 , 2 );
function my_plugin_generate_ai_summary ($post_id , $post ) {
if (wp_is_post_autosave ($post_id ) || wp_is_post_revision ($post_id )) {
return ;
}
if (!function_exists ('wp_ai_client_prompt' )) {
return ;
}
$content = strip_tags ($post ->post_content);
if (empty ($content )) {
return ;
}
$result = wp_ai_client_prompt (
'Create a compelling 2-sentence summary for social media: ' . substr ($content , 0 , 1000 )
);
if (is_wp_error ($result )) {
return ;
}
$result ->using_temperature (0.3 );
$summary = $result ->generate_text ();
if ($summary && !is_wp_error ($summary )) {
update_post_meta ($post_id , '_ai_summary' , sanitize_textarea_field ($summary ));
}
}
Abilities API Registration
add_action ('wp_abilities_api_categories_init' , function() {
wp_register_ability_category ('content-creation' , [
'label' => __ ('Content Creation' , 'my-plugin' ),
'description' => __ ('Abilities for generating and managing content' , 'my-plugin' ),
]);
});
add_action ('wp_abilities_api_init' , function() {
wp_register_ability ('my-plugin/generate-summary' , [
'label' => __ ('Generate Summary' , 'my-plugin' ),
'description' => __ ('Creates an AI-powered summary of content' , 'my-plugin' ),
'category' => 'content-creation' ,
'input_schema' => [
'type' => 'object' ,
'properties' => [
'content' => ['type' => 'string' ],
'length' => ['type' => 'integer' , 'default' => 2 ]
],
'required' => ['content' ]
],
'output_schema' => [
'type' => 'object' ,
'properties' => [
'summary' => ['type' => 'string' ]
]
],
'execute_callback' => 'my_plugin_generate_summary_cb' ,
'permission_callback' => function() {
return current_user_can ('edit_posts' );
}
]);
});
function my_plugin_generate_summary_cb ($input ) {
$content = isset ($input ['content' ]) ? $input ['content' ] : '' ;
$length = isset ($input ['length' ]) ? absint ($input ['length' ]) : 2 ;
if (empty ($content )) {
return new WP_Error ('empty_content' , 'No content provided' );
}
if (!function_exists ('wp_ai_client_prompt' )) {
return new WP_Error ('ai_unavailable' , 'AI not available' );
}
$prompt = sprintf ('Create a %d-sentence summary of: %s' , $length , substr ($content , 0 , 2000 ));
$result = wp_ai_client_prompt ($prompt )
->using_temperature (0.3 )
->generate_text ();
if (is_wp_error ($result )) {
return $result ;
}
return ['summary' => sanitize_textarea_field ($result )];
}
PHP-Only Block Registration
if (function_exists ('register_block_type' )) {
register_block_type ('my-plugin/featured-post' , [
'render_callback' => function($attributes , $content , $block ) {
$post_id = isset ($attributes ['postId' ]) ? absint ($attributes ['postId' ]) : 0 ;
if (!$post_id ) {
$post_id = get_the_ID ();
}
$post = get_post ($post_id );
if (!$post ) {
return '' ;
}
$title = esc_html ($post ->post_title);
$excerpt = esc_html (get_the_excerpt ($post ));
return sprintf (
'<div class="featured-post"><h2>%s</h2><p>%s</p></div>' ,
$title ,
$excerpt
);
},
'attributes' => [
'postId' => ['type' => 'integer' , 'default' => 0 ],
'showExcerpt' => ['type' => 'boolean' , 'default' => true ]
],
]);
}
Disable Collaboration (if needed)
import { addFilter } from '@wordpress/hooks' ;
addFilter (
'sync.providers' ,
'my-plugin/disable-collab' ,
() => []
);
Phase 9: Testing
Skills to Invoke
test-automator - Test automation
php-pro - PHP testing
Actions
Set up PHPUnit
Create unit tests
Write integration tests
Test with WordPress test suite
Configure CI
WordPress 7.0 Testing Priorities
Test RTC compatibility
Verify AI connector functionality
Validate DataViews integration
Test Interactivity API with watch()
Copy-Paste Prompts Use @test-automator to set up plugin testing
Plugin Structure plugin-name/
├── plugin-name.php
├── includes/
│ ├── class-plugin.php
│ ├── class-loader.php
│ ├── class-activator.php
│ └── class-deactivator.php
├── admin/
│ ├── class-plugin-admin.php
│ ├── css/
│ └── js/
├── public/
│ ├── class-plugin-public.php
│ ├── css/
│ └── js/
├── blocks/ # PHP-only blocks (WP 7.0)
├── abilities/ # Abilities API
├── ai/ # AI Connector integration
├── languages/
└── vendor/
WordPress 7.0 Compatibility Checklist
Quality Gates
Related Workflow Bundles
wordpress - WordPress development
wordpress-theme-development - Theme development
wordpress-woocommerce - WooCommerce
Connections
Domain: [[Produktivitaet & Werkzeuge]]
Kategorie: [[Automatisierung & Workflows]]
Navigation: [[Skills Uebersicht]], [[Home]]