A powerful WordPress plugin that automatically or manually processes posts using multiple AI providers (Anthropic Claude, OpenAI, Google AI) to enhance content with AI-generated improvements, proper media handling using WordPress block format, and historical enrichment.
- Multiple AI Providers - Choose from Anthropic Claude, OpenAI, or Google AI (Gemini)
- Grammar and Spelling Correction - Automatically fixes errors while preserving your voice
- SEO-Friendly Title Generation - Creates compelling, optimized titles
- Smart Tag Generation - Automatically generates 5-10 relevant tags
- Category Management - Creates and assigns hierarchical categories
- Historical Enrichment - Adds fascinating historical context for mentioned locations
- WordPress Block Format - Properly formatted galleries and images using WordPress block editor format
- Media Optimization - Handles photo galleries, PDFs, and video embeds
- Secure API Key Storage - Encrypted storage using WordPress encryption
- Comprehensive Logging - Track all API calls and processing activities
- Bulk Processing - Process multiple posts at once
- Auto-Processing - Optionally process new posts automatically
- Clone this repository or download the ZIP file
- Copy the
claude-post-processordirectory to your WordPresswp-content/plugins/directory - Activate the plugin through the WordPress admin panel
- Go to Settings > AI Post Processor
- Select your preferred AI provider (Claude, OpenAI, or Google AI)
- Enter your API key for the selected provider:
- Anthropic Claude: Get key at https://console.anthropic.com/
- OpenAI: Get key at https://platform.openai.com/api-keys
- Google AI: Get key at https://aistudio.google.com/app/apikey
- Configure your processing options
- Go to Settings > AI Post Processor > Manual Processing
- Select posts to process
- Click "Process Selected" or "Process All Unprocessed"
- Go to Posts > All Posts
- Select posts using checkboxes
- Choose "Process with Claude" from the Bulk Actions dropdown
- Click Apply
- Go to Posts > All Posts
- Hover over a post
- Click "Process with Claude"
- Go to Settings > AI Post Processor > Processing Options
- Enable "Auto-process New Posts"
- New posts will be processed automatically when created
claude-post-processor/
├── claude-post-processor.php # Main plugin file
├── includes/
│ ├── interface-ai-provider.php # AI provider interface
│ ├── class-claude-api.php # Claude API handler
│ ├── class-openai-provider.php # OpenAI provider
│ ├── class-google-ai-provider.php # Google AI provider
│ ├── class-ai-provider-factory.php # Provider factory
│ ├── class-post-processor.php # Main processing logic
│ ├── class-media-handler.php # Photo/PDF/Video handling
│ ├── class-taxonomy-manager.php # Tags and categories
│ └── class-admin-settings.php # Settings page
├── admin/
│ ├── css/admin-styles.css # Admin and frontend styles
│ └── js/admin-scripts.js # Admin JavaScript
├── readme.txt # WordPress.org readme
├── uninstall.php # Cleanup on uninstall
└── composer.json # Composer configuration
- WordPress 6.0 or higher
- PHP 8.0 or higher
- API key from one of the supported AI providers:
- Anthropic Claude
- OpenAI
- Google AI (Gemini)
- Claude Sonnet 4 (Recommended)
- Claude 3.5 Sonnet
- Claude 3 Opus
- GPT-4o (Recommended)
- GPT-4o Mini
- GPT-4 Turbo
- GPT-4
- GPT-3.5 Turbo
- Gemini 2.0 Flash (Experimental)
- Gemini 1.5 Pro (Recommended)
- Gemini 1.5 Flash
- Gemini 1.0 Pro
The plugin now fully supports WordPress block editor formatting:
- Gallery Block Format: Creates proper
<!-- wp:gallery -->blocks instead of shortcodes - Image Block Format: Single images are formatted as
<!-- wp:image -->blocks - Preserves Existing Blocks: If content already contains WordPress blocks, they are preserved
- Smart Image Detection: Only adds images that aren't already in the content
- API keys are encrypted before storage using AES-256-CBC
- All inputs are sanitized and validated
- All outputs are properly escaped
- Nonces are used for all form submissions
- Capability checks on all admin actions
This plugin sends your post content to the selected AI provider's API for processing. Please review the privacy policies:
The plugin stores:
- Encrypted API keys in your WordPress database
- Processing logs in
wp-content/uploads/claude-processor-logs/ - Post metadata about processing status
No data is sent to any third party except your selected AI provider's API.
For issues, feature requests, or contributions, please visit: https://github.com/gerry421/WordPress-Post-Processor/issues
GPL-2.0+