Transform passive readers into engaged users with customizable AI summary buttons.
Visit wordpress.org to install the Plugin
Post Digest adds interactive "Summarize with ChatGPT" buttons to your WordPress posts. But here's what makes it special: readers can customize the AI prompt right on your page before clicking. This gives you invaluable insights into what your audience actually cares about!
Traditional analytics tell you what people read. Post Digest tells you what questions they're asking about your content. See which topics spark curiosity, what pain points need addressing, and how readers want information presented.
Simply search for "Post Digest" in the block inserter. The block integrates seamlessly with WordPress's native editor experience.
As the author, you set the default instructions for ChatGPT. Want bullet points? A technical summary? Explain it for beginners? You control the template. The preview shows exactly how the button will appear on your published post.
What you see:
- β Real-time preview of the prompt
- β Live URL generation as you type
- β Clean, intuitive interface
This is what your readers see - an elegant, editable prompt interface. They can:
- βοΈ Customize the instructions to their specific needs
- π― Ask specific questions about your content
- π Click once to get AI-powered insights
Example: A reader might change "give me a summary" to "explain this for a 12-year-old" or "focus on the technical implementation details."
This customization data is GOLD - it reveals exactly what information gaps exist in your content!
One click and boom! ChatGPT opens with the fully customized prompt pre-filled. Your reader gets instant, AI-powered insights about your post.
The prompt includes:
- π Your post title
- π Full URL to the article
- β¨ Customized instructions (either yours or reader-modified)
Track engagement in the WordPress Comments section:
- π See all button clicks grouped by post
- π‘ Discover which prompt variations readers prefer
- π― Identify content gaps and reader questions
- π All data anonymized for GDPR compliance
Example insights:
- "15 readers asked to explain this 'for beginners'" β Time to simplify!
- "8 readers wanted 'technical details only'" β Maybe add an advanced section?
- "Readers keep asking about X" β Create a dedicated post about X!
How to view: In WordPress admin, go to Comments β Filter by comment type.
- SQL Injection Protection - All database queries use prepared statements
- CSRF Prevention - Comprehensive nonce verification
- Input Validation - Multi-layer validation on client and server
- XSS Protection - All output properly escaped
- Rate Limiting - Prevents abuse (10 requests/minute per IP)
- IP Anonymization - Automatic IPv4/IPv6 anonymization
- No External Tracking - All data stored locally in WordPress
- Data Minimization - Only essential data collected
- Transparent - Users know exactly what's tracked
- Secure Storage - All data sanitized before database storage
- WordPress Coding Standards - 100% compliant
- Unique Prefixing -
wrpdig_namespace prevents conflicts - Clean Uninstall - Complete data removal option
- Theme Compatible - Prefixed CSS prevents style conflicts
- Translation Ready - Complete i18n support
Built-in translations for:
- π©πͺ German (Deutsch)
- π¬π§ English
- πͺπΈ Spanish (EspaΓ±ol)
- π«π· French (FranΓ§ais)
- Log into WordPress admin
- Go to Plugins β Add New
- Search "Post Digest"
- Click Install β Activate
- Download the latest release from
dist/folder - Go to Plugins β Add New β Upload Plugin
- Choose the .zip file
- Click Install Now β Activate
cd wp-content/plugins/
git clone git@github.com:atraining/post-digest.git
# Activate via WordPress admin1. Create or edit a post
- Open any post in the Gutenberg editor
2. Add the block
- Click the (+) button
- Search "Post Digest"
- Add the block
3. Customize (optional)
- Edit the default prompt instructions
- Preview how it will look
- Publish!
4. Monitor engagement
- Check WordPress Comments
- Filter by comment type to see analytics
- Identify content opportunities
Block Registration:
// The block is registered with namespace: wrpdig/summary-button
register_block_type('wrpdig/summary-button', array(
'render_callback' => array('WrpDig_Block', 'render_callback')
));AJAX Endpoint:
// Track button clicks
action: 'wrpdig_track_click'
nonce: wrpdigData.nonce
post_id: [current_post_id]- WordPress: 5.0+ (Gutenberg required)
- PHP: 7.4+ (tested up to 8.2)
- JavaScript: ES6+ browser support
- Database: Standard WordPress tables (no custom tables)
- Database Queries: Optimized with prepared statements
- Caching: Transient-based rate limiting
- Assets: Minimal JS/CSS loaded only when block is present
- Server-Side Rendering: Better SEO and performance
- β Chrome 90+
- β Firefox 88+
- β Safari 14+
- β Edge 90+
β οΈ Graceful degradation for older browsers
- β Button clicks
- β Prompt modifications (what readers changed)
- β Timestamp of interaction
- β Anonymized IP (GDPR compliant)
- β Post ID and title
- β Full IP addresses
- β Personal information
- β ChatGPT responses
- β External analytics services
// Get analytics for a specific post (if developing)
$analytics = WrpDig_Analytics::get_analytics_for_post($post_id);
// Or view in WordPress admin:
// Comments β Filter by comment type1. Input Validation
// All inputs validated
$post_id = intval($_POST['post_id']);
$prompt = sanitize_textarea_field($_POST['prompt']);
if (strlen($prompt) > 5000) wp_send_json_error();2. CSRF Protection
wp_verify_nonce($nonce, 'wrpdig_track_click');3. Rate Limiting
// 10 requests per minute per IP
set_transient('wrpdig_rate_limit_' . $ip_hash, $count, MINUTE_IN_SECONDS);4. IP Anonymization (GDPR)
// IPv4: 192.168.1.123 β 192.168.1.0
// IPv6: Last 80 bits set to 0- β
Unique prefix:
wrpdig_(6 characters) - β No generic function names
- β
Proper file naming:
post-digest.php - β Assets excluded from plugin package
- β All code follows WordPress standards
π― WordPress.org Compliance Release
- β
Breaking Change: Prefix changed from
post_digesttowrpdig - β
Renamed main file to
post-digest.php - β Updated 74+ namespace instances
- β Assets properly excluded from distribution
- β All PHP files validated for syntax
β οΈ Migration Note: Clean install recommended for existing users
π‘οΈ Security & Privacy Update
- Added SQL injection protection
- Implemented GDPR-compliant IP anonymization
- Enhanced input validation
- Improved error handling
- Performance optimizations
- Initial release
- Basic Gutenberg block
- ChatGPT integration
- Simple analytics
We welcome contributions!
- Use GitHub Issues
- Include WordPress/PHP versions
- Provide steps to reproduce
- Fork the repository
- Create a feature branch
- Follow WordPress coding standards
- Submit PR with clear description
Help translate Post Digest:
- Translation files in
/languages/ - Use Poedit or similar tool
- Submit translations via PR
post-digest/
βββ post-digest.php # Main plugin file
βββ readme.txt # WordPress.org readme
βββ uninstall.php # Cleanup on uninstall
βββ includes/
β βββ class-wrpdig-analytics.php
β βββ class-wrpdig-block.php
βββ blocks/
β βββ summary-button/
β βββ edit.js # Block editor
β βββ frontend.js # Frontend interaction
β βββ style.css # Styling
βββ languages/ # Translation files
βββ assets/ # WordPress.org assets (not in plugin zip)
β βββ banner-1544x500.png
β βββ screenshot-1.png
β βββ screenshot-2.png
β βββ screenshot-3.png
β βββ screenshot-4.png
βββ dist/ # Distribution packages
- GitHub Issues: Report bugs and request features
- Email: support@wise-relations.com
GPL v2 or later
Post Digest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Developed by: Wise Relations - WordPress experts specializing in AI-powered content engagement and analytics solutions.
Contributors:
- Security review and enhancements
- GDPR compliance implementation
- WordPress.org submission preparation
Need custom WordPress development? Visit wise-relations.com for expert consulting services.
If you find Post Digest useful:
- β Star this repository
- π Report bugs to help improve
- π Share with others who might benefit
Made with β€οΈ for the WordPress community




