Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mo-sawah/ai-newsletter-pro/archive/refs/heads/main.zipAI Newsletter Pro - WordPress Plugin
A comprehensive newsletter plugin with AI-powered content curation, multiple widget layouts, and seamless email service integrations.
Version 1.0.3
Features
Core Functionality
- ✅ Subscriber Management - Complete subscriber database with status tracking
- ✅ Multiple Widget Types - Popup modals, inline forms, floating widgets, banners
- ✅ Campaign Management - Create, send, and track email campaigns
- ✅ Analytics & Reporting - Detailed performance tracking and insights
- ✅ Email Service Integrations - Mailchimp, ConvertKit, Zoho, SendGrid, ActiveCampaign
- ✅ AI Content Curation - Automated newsletter generation using OpenAI
- ✅ Shortcodes - Easy form embedding with
[ai_newsletter_form] - ✅ GDPR Compliance - Privacy controls and consent management
Widget Features
- Popup Modals - Time, scroll, and exit-intent triggers
- Inline Forms - Seamlessly embed in content
- Floating Widgets - Sticky corner widgets
- Banner Notifications - Top/bottom page banners
- Customizable Design - Multiple styles and color schemes
- Mobile Responsive - Works perfectly on all devices
AI-Powered Features
- Smart Content Curation - AI selects best posts for newsletters
- Automated Generation - Create newsletters from recent content
- Multiple Writing Tones - Professional, friendly, casual, enthusiastic
- Quality Assessment - AI rates content quality
- Subject Line Optimization - Generate compelling email subjects
Installation
- Upload the plugin files to
/wp-content/plugins/ai-newsletter-pro/ - Activate the plugin through the 'Plugins' menu in WordPress
- Go to 'Newsletter Pro' in your admin menu to configure
File Structure
/wp-content/plugins/ai-newsletter-pro/
├── ai-newsletter-pro.php # Main plugin file
├── README.md # Plugin documentation
├── uninstall.php # Cleanup on uninstall
├── admin/ # Admin dashboard
│ ├── class-admin.php # Admin main class
│ ├── admin-dashboard.php # Dashboard page
│ ├── admin-widgets.php # Widget management
│ ├── admin-campaigns.php # Campaign management
│ ├── admin-subscribers.php # Subscriber management
│ ├── admin-integrations.php # Email service integrations
│ ├── admin-settings.php # Plugin settings
│ └── admin-analytics.php # Analytics page
├── includes/ # Core functionality
│ ├── class-database.php # Database operations
│ ├── class-widget-manager.php # Widget system
│ ├── class-email-services.php # Email service integrations
│ ├── class-ai-curator.php # AI content curation
│ ├── class-campaign-manager.php # Campaign handling
│ ├── class-subscriber-manager.php # Subscriber management
│ ├── class-analytics.php # Analytics tracking
│ └── class-shortcodes.php # Shortcode functionality
├── integrations/ # Email service adapters
│ ├── class-mailchimp.php # Mailchimp integration
│ ├── class-convertkit.php # ConvertKit integration
│ └── ... (other service integrations)
├── public/ # Frontend functionality
│ ├── js/ # JavaScript files
│ │ ├── newsletter-widgets.js # Widget functionality
│ │ └── newsletter-admin.js # Admin dashboard JS
│ └── css/ # Stylesheets
│ ├── newsletter-widgets.css # Widget styles
│ └── newsletter-admin.css # Admin styles
├── templates/ # Template files
│ ├── widgets/ # Widget templates
│ │ ├── popup-modal.php # Popup widget template
│ │ ├── inline-widget.php # Inline widget template
│ │ ├── floating-widget.php # Floating widget template
│ │ └── banner-widget.php # Banner widget template
│ └── emails/ # Email templates
│ ├── welcome-email.php # Welcome email template
│ ├── newsletter-template.php # Newsletter template
│ └── unsubscribe-email.php # Unsubscribe confirmation
└── languages/ # Translation files
├── ai-newsletter-pro.pot # Template file
└── ai-newsletter-pro-en_US.po # English translations
Quick Start Guide
1. Basic Setup
- Activate Plugin - Go to Plugins → Activate AI Newsletter Pro
- Configure Settings - Visit Newsletter Pro → Settings
- Set Email Details - Add your from name and email address
- Choose Widget Types - Enable popup, floating, banner, or inline widgets
2. Create Your First Widget
- Go to Newsletter Pro → Widgets
- Click Create Popup (or your preferred type)
- Customize title, subtitle, and button text
- Set trigger conditions (time delay, scroll percentage, exit intent)
- Choose design style and colors
- Save and activate
3. Email Service Integration
- Go to Newsletter Pro → Integrations
- Choose your email service (Mailchimp, ConvertKit, etc.)
- Enter API credentials
- Test connection
- Enable automatic syncing
4. AI Configuration (Optional)
- Get OpenAI API key from https://platform.openai.com/api-keys
- Go to Newsletter Pro → Settings → AI Configuration
- Enter your API key
- Configure content selection criteria
- Set newsletter frequency for auto-generation
Shortcodes
Newsletter Form
[ai_newsletter_form style="inline" title="Subscribe" button="Join Now"]
Parameters:
style- inline, popup, floating, bannertitle- Form headlinesubtitle- Description textbutton- Button textplaceholder- Email input placeholderclass- Additional CSS classesshow_privacy- true/falseredirect- URL to redirect after signupsource- Source identifier for tracking
Subscriber Count
[ai_newsletter_count format="number" prefix="Join" suffix="subscribers"]
Parameters:
format- number, short (1.2K), wordsprefix- Text before countsuffix- Text after countstatus- subscribed, pending, allclass- CSS classes
Widget Display
[ai_newsletter_widget id="123"]
[ai_newsletter_widget type="popup" title="Subscribe Now"]
Email Service Setup
Mailchimp
- Log into Mailchimp account
- Go to Account → Extras → API Keys
- Create new API key
- Go to Audience → Settings → Audience name and defaults
- Copy Audience ID
- Add both to Newsletter Pro → Integrations
ConvertKit
- Log into ConvertKit account
- Go to Settings → Advanced → API
- Copy API Key
- Go to Forms and copy Form ID
- Add both to Newsletter Pro → Integrations
SendGrid
- Log into SendGrid account
- Go to Settings → API Keys
- Create new API key with Full Access
- Copy API key (won't be visible again)
- Add to Newsletter Pro → Integrations
AI Features Setup
OpenAI Integration
- Get API Key - Sign up at https://platform.openai.com
- Add Credits - Purchase API credits for usage
- Configure Plugin - Add API key in Settings
- Set Preferences - Choose tone, length, criteria
- Auto-Generation - Enable scheduled newsletter creation
Content Curation Options
- High Engagement - Posts with most comments/views
- Recent Posts - Latest published content
- AI Quality Assessment - AI evaluates post quality
- Mixed Strategy - Combination approach
Customization
Template Override
Copy template files to your theme:
/wp-content/themes/your-theme/ai-newsletter-pro/widgets/popup-modal.php
Custom Styling
Add CSS to your theme or use the built-in customizer:
.ai-newsletter-popup {
/* Your custom styles */
}
Hooks and Filters
// Modify form HTML before display
add_filter('ai_newsletter_form_html', 'your_function');
// Custom validation
add_filter('ai_newsletter_validate_email', 'your_validation');
// After successful subscription
add_action('ai_newsletter_subscriber_added', 'your_function');
Performance
Optimization Tips
- Caching - Uses WordPress transients for performance
- Lazy Loading - Widgets load only when needed
- Minimal JS/CSS - Optimized assets under 50KB total
- Database Indexes - Proper indexing on all tables
- Rate Limiting - Built-in API rate limiting
Database Tables
wp_ai_newsletter_subscribers- Subscriber datawp_ai_newsletter_campaigns- Email campaignswp_ai_newsletter_widgets- Widget configurationswp_ai_newsletter_analytics- Performance trackingwp_ai_newsletter_campaign_recipients- Send tracking
Troubleshooting
Common Issues
Widgets Not Appearing
- Check widget is active in Newsletter Pro → Widgets
- Verify CSS/JS files are loaded
- Check for JavaScript errors in browser console
Email Service Connection Failed
- Verify API credentials are correct
- Check service status pages
- Test with different API endpoints
Subscribers Not Syncing
- Confirm email service integration is enabled
- Check sync logs in Integrations page
- Verify API rate limits aren't exceeded
AI Features Not Working
- Ensure OpenAI API key is valid
- Check API credit balance
- Verify internet connectivity
Debug Mode
Enable WordPress debug mode in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
Check logs in /wp-content/debug.log for AI Newsletter Pro errors.
Security
- Data Encryption - Sensitive data encrypted in database
- Nonce Verification - All forms use WordPress nonces
- Capability Checks - Proper user permission verification
- Sanitization - All inputs sanitized and validated
- GDPR Compliance - Built-in privacy controls
Support
- Documentation - Complete guides at plugin settings
- Community - WordPress.org support forums
- Email Support - Contact through plugin admin panel
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- MySQL 5.6 or higher
- SSL certificate (recommended)
- OpenAI API key (for AI features)
License
GPL v2 or later - https://www.gnu.org/licenses/gpl-2.0.html
Changelog
Version 1.0.3
- Initial release
- Complete subscriber management system
- Multi-widget support with advanced triggers
- Email service integrations (5+ services)
- AI-powered content curation
- Comprehensive analytics dashboard
- GDPR compliance features
- Mobile-responsive design
- Shortcode support
AI Newsletter Pro - Transform your WordPress site into a powerful newsletter platform with intelligent automation and beautiful, converting signup forms.