AI Post Processor is a comprehensive WordPress plugin that leverages multiple AI providers (Anthropic Claude, OpenAI, Google Gemini) to automatically enhance blog posts with intelligent improvements, proper media formatting, and enriched historical context.
- Automatic Error Detection: Identifies and fixes grammar errors, spelling mistakes, and punctuation issues
- Style Preservation: Maintains your unique voice and writing style while making improvements
- Sentence Structure: Enhances readability without changing meaning
- No Manual Work: All corrections happen automatically during processing
- AI-Generated Titles: Creates compelling, optimized titles based on your content
- Optimal Length: Generates titles between 40-60 characters for best SEO results
- Engaging & Descriptive: Captures the essence of your content
- No Clickbait: Professional, honest titles that accurately represent your content
- Automatic Creation: Generates 5-10 relevant tags per post
- Topic Analysis: Identifies main topics, themes, people, and places
- SEO Optimization: Mix of specific and general terms for better discoverability
- Instant Assignment: Tags are created and assigned automatically
- Contextual Suggestions: Recommends 1-3 appropriate categories
- Hierarchical Support: Creates parent-child category relationships (e.g., Travel > Europe > France)
- Automatic Creation: Categories are created if they don't exist
- Smart Assignment: Assigns categories that make sense for your content
- Place Detection: Automatically identifies SPECIFIC locations, landmarks, and historical sites in your content
- Quality Guidelines: Only includes named, specific places (not generic references like "the park" or "home")
- Central to Narrative: Focuses on locations that are central to the story
- Historical Context: Adds 2-3 sentences of historical background with specific dates and events
- Interesting Facts: Includes lesser-known details visitors might not know
- Cultural Significance: Highlights relevant historical importance with substantive information
- Block Editor Compatible: Uses native WordPress quote block format (
<!-- wp:quote -->) - Professional Styling: Blue border with gradient background for visual appeal
- Structured Content: Organized with location name, historical context, and "Did you know?" facts
- Responsive Design: Adapts to different screen sizes seamlessly
- Smart Detection: Only displays when SPECIFIC places are mentioned
- Quality Control: Returns empty if no specific locations found
- User Control: Can be disabled via Settings > Processing Options
- Default Enabled: Feature is on by default but can be toggled off
- Correct Order: Inserted AFTER main narrative
- Before Media: Appears BEFORE photo galleries and other media
- Non-Intrusive: Only added when it adds value to the content
- Single Image: Displays as featured image with caption
- Multiple Images: Automatically creates WordPress native gallery
- Gallery Shortcode:
[gallery ids="1,2,3" columns="3" link="file" size="large"] - Caption Preservation: Original captions and alt text maintained
- Clean Content: Individual image tags removed and consolidated
- Inline Display: PDFs embedded directly in posts using
<object>tag - Responsive Container: Adapts to screen size
- Fallback Link: Download option for unsupported browsers
- Mobile Friendly: Works on all devices
- URL Detection: Recognizes all YouTube URL formats
youtube.com/watch?v=VIDEO_IDyoutu.be/VIDEO_IDyoutube.com/embed/VIDEO_ID
- Responsive Embed: 16:9 aspect ratio container
- Lazy Loading: Performance optimization
- Allowfullscreen: Full-screen viewing enabled
- Multiple Formats: .mp4, .webm, .mov files
- HTML5 Player: Native video player with controls
- Responsive Design: 16:9 aspect ratio maintained
- Browser Compatibility: Fallback messages for unsupported formats
- Background Processing: Uses WordPress cron for async processing
- New Post Detection: Only processes new posts, not updates
- Smart Skipping: Avoids autosaves and revisions
- Scheduled Execution: 10-second delay before processing starts
- Single Post: Process individual posts from row actions
- Bulk Actions: Select and process multiple posts at once
- Settings Page: Dedicated interface for manual processing
- Progress Tracking: Visual feedback during processing
- Draft Status: All processed posts set to draft for review
- Original Backup: Content and title backed up before processing
- Processing Log: Detailed log of all operations performed
- Email Notifications: Optional email when processing completes
- Historical Context Toggle: Enable or disable historical enrichment feature (enabled by default)
- Encryption: AES-256-CBC encryption for API keys
- Secure Storage: Uses WordPress salts for encryption key
- Password Field: API key hidden in admin interface
- OpenSSL Support: Uses modern encryption when available
- Nonces: All forms protected with WordPress nonces
- Capability Checks:
manage_optionsfor settingsedit_postsfor processing
- Input Sanitization: All inputs sanitized with appropriate functions
- Output Escaping: All outputs properly escaped to prevent XSS
- Log Protection:
.htaccessfile protects log directory - Private Logs: Logs stored outside web root when possible
- API Validation: All API responses validated before use
- Connection Failures: Gracefully handles API unavailability
- Rate Limiting: Exponential backoff with up to 5 retries
- Invalid Credentials: Helpful admin notices
- Timeout Handling: Saves partial progress
- Content Length: Handles oversized content appropriately
- API Call Logs: Every API interaction recorded
- Error Logs: Separate error log files
- Date-Based: Logs organized by date
- Admin Access: View logs from settings page
- Timestamp: All entries timestamped
- Tabbed Interface: Clean organization
- API Configuration
- Processing Options
- Manual Processing
- Logs
- Intuitive Forms: Easy to use settings
- Help Text: Contextual help for each setting
- Model Selection: Choose from available Claude models
- Dashboard Widget: Shows unprocessed post count
- Quick Actions: Process button from dashboard
- At-a-Glance: See status without navigating
- Status Column: Shows processing status for each post
- Processing Date: When post was processed
- Bulk Actions: Process multiple posts easily
- Row Actions: Quick process link per post
- 2-Second Delay: Between API calls within same post
- Exponential Backoff: On rate limit errors
- Sequential Processing: One post at a time in bulk operations
- Background Jobs: Non-blocking for user experience
- Lazy Loading: Videos load only when needed
- Transient Caching: Could be added for API responses
- Efficient Queries: Optimized database queries
- Minimal Dependencies: Lightweight codebase
_claude_processed: Processing status (boolean)_claude_processed_date: When processed (timestamp)_claude_original_content: Backup of original content_claude_original_title: Backup of original title_claude_processing_log: Array of operations performed_claude_generated_tags: Which tags were auto-generated_claude_generated_categories: Which categories were auto-generated
claude_post_processor_api_key: Encrypted API keyclaude_post_processor_model: Selected Claude modelclaude_post_processor_auto_process: Auto-processing enabled/disabledclaude_post_processor_email_notifications: Email notifications enabled/disabledclaude_post_processor_include_historical: Historical context enabled/disabled (default: true)
- Complete Cleanup: Removes all options on uninstall
- Metadata Removal: Deletes all post meta
- Log Deletion: Removes all log files and directory
- Cron Cleanup: Clears scheduled events
- Coding Standards: Follows WordPress coding standards
- PHPDoc Comments: Comprehensive documentation
- Translation Ready: All strings use translation functions
- Action Hooks: Extensible via WordPress hooks
- Filter Hooks: Customizable outputs
- PHP 8.0+: Uses modern PHP features
- Type Safety: Proper type declarations where appropriate
- Error Handling: Exception handling and WP_Error usage
- Singleton Pattern: Main class uses singleton for global access
- Autoloading: Composer autoload configuration
- Dependencies: Properly declared in composer.json
- PSR Standards: Follows PHP-FIG standards
- WordPress: 6.0 or higher
- PHP: 8.0 or higher
- API Key: Anthropic Claude API key required
- Internet: Active internet connection for API calls
- Images: All WordPress-supported image formats
- PDFs: PDF documents (embedded inline)
- Videos:
- YouTube (all URL formats)
- MP4, WebM, MOV (direct files)
- Claude Sonnet 4 (claude-sonnet-4-20250514) - Default
- Claude 3.5 Sonnet (claude-3-5-sonnet-20241022)
- Claude 3 Opus (claude-3-opus-20240229)
Each processed post makes 5 API calls:
- Grammar and spelling correction
- Title generation
- Tag generation
- Category generation
- Historical enrichment
- Custom Prompts: Allow users to customize AI prompts
- Multi-Language: Support for non-English content
- Image Analysis: Use Claude's vision capabilities for image descriptions
- Content Summarization: Auto-generate excerpts
- Related Posts: AI-suggested related content
- SEO Metadata: Auto-generate meta descriptions
- Social Media: Generate social media snippets
- Content Scheduling: Schedule processing for off-peak hours
- Batch Reporting: Detailed reports for bulk processing
- Custom Fields: Support for custom post types and fields
- Enhance personal blog posts with professional quality
- Save time on editing and formatting
- Improve SEO with better titles and tags
- Standardize content quality across multiple authors
- Automate repetitive editing tasks
- Ensure consistent categorization
- Add rich historical context to location posts
- Create beautiful photo galleries automatically
- Enhance storytelling with facts
- Provide historical context for educational content
- Maintain high writing standards
- Organize content with smart categorization
- Quick turnaround on breaking news
- Consistent formatting
- Automated tagging and categorization
- Documentation: Comprehensive README and installation guide
- Testing Checklist: Detailed feature verification checklist
- GitHub Issues: Bug reports and feature requests
- Code Quality: Passes CodeQL security analysis
- Code Reviews: AI-reviewed for best practices