A powerful Grammarly-like AI writing assistant for WordPress, powered by Google Gemini API.
AI-powered writing assistance directly into your WordPress editor. Unlike other AI plugins, each user manages their own Google Gemini API key, ensuring privacy and individual control. The plugin seamlessly integrates with Gutenberg's toolbar, providing instant AI suggestions right where you write.
- ๐ Multi-language Support - English + all major Indian languages
- โ๏ธ AI Text Improvement - Enhance clarity and grammar
- โ Grammar Checking - Find and fix errors with explanations
- ๐จ Content Rewriting - 6 different tones (professional, casual, friendly, etc.)
- ๐ Direct Text Replacement - Works like Grammarly - replaces text in-place
- ๐ Private API Keys - Each user uses their own Gemini API key
- ๐ฏ Universal Compatibility - Works with Gutenberg, Classic Editor, and Elementor
- WordPress 5.8 or higher
- PHP 7.4 or higher
- Gutenberg Block Editor enabled
- Google Gemini API key (free at Google AI Studio)
- Download the plugin from this repository
- Upload the
wp-content-helperfolder to/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Dashboard โ AI Assistant to add your API key
cd wp-content/plugins/
git clone https://github.com/krtrimtech/wp-content-helper.gitThen activate the plugin in WordPress admin.
- Visit Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy your API key
- Go to WordPress โ AI Assistant โ Paste your key โ Save
Note: The API key is completely free with generous usage limits!
- After activation, go to Dashboard โ AI Assistant
- Paste your Google Gemini API key
- Select any text in your post
- Click the star icon (๐ค) in the toolbar
- Your text is instantly improved and replaced
- Select text you want to analyze
- Click the checkmark icon (โ) in the toolbar
- View detailed grammar suggestions in a modal
- See your writing score (0-100)
- Select text to rewrite
- Click the edit icon (โ๏ธ) in the toolbar
- Choose your desired tone:
- Professional
- Casual
- Friendly
- Academic
- Creative
- Simple
- Click "Rewrite" and review the result
- Click "Replace Selected Text" to apply changes
- ๐ฌ๐ง English
- ๐ฎ๐ณ Hindi (เคนเคฟเคเคฆเฅ)
- ๐ฎ๐ณ Bengali (เฆฌเฆพเฆเฆฒเฆพ)
- ๐ฎ๐ณ Tamil (เฎคเฎฎเฎฟเฎดเฏ)
- ๐ฎ๐ณ Telugu (เฐคเฑเฐฒเฑเฐเฑ)
- ๐ฎ๐ณ Marathi (เคฎเคฐเคพเค เฅ)
- ๐ฎ๐ณ Gujarati (เชเซเชเชฐเชพเชคเซ)
- ๐ฎ๐ณ Kannada (เฒเฒจเณเฒจเฒก)
- ๐ฎ๐ณ Malayalam (เดฎเดฒเดฏเดพเดณเด)
- ๐ฎ๐ณ Punjabi (เจชเฉฐเจเจพเจฌเฉ)
- ๐ฎ๐ณ Urdu (ุงุฑุฏู)
admin_menu- Dashboard settings pageenqueue_block_editor_assets- Toolbar buttonswp_ajax_*- AJAX handlers for AI requests
- Nonce verification for all AJAX requests
- API keys stored per-user in WordPress user meta
- Capability checks (
edit_posts) - Input sanitization on all user inputs
We welcome contributions! Here's how you can help:
- Fork this repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
git clone https://github.com/krtrimtech/wp-content-helper.git
cd wp-content-helper
# Make your changes
# Test on a local WordPress installationwp-content-helper/ โโโ wp-content-helper.php # Main plugin file โโโ includes/ โ โโโ class-gemini-api.php # Gemini API handler โ โโโ class-settings.php # Settings page โ โโโ class-editor-button.php # Floating button & modal โ โโโ class-ajax-handlers.php # AJAX endpoints โ โโโ prompts.php # AI prompts โโโ assets/ โ โโโ css/ โ โ โโโ editor-style.css # All CSS โ โโโ js/ โ โโโ editor-script.js # All JavaScript โโโ README.md # This file
text
- New AI Function: Add to
includes/prompts.php - New AJAX Endpoint: Add to
includes/class-ajax-handlers.php - New UI Element: Update
assets/css/editor-style.cssandassets/js/editor-script.js
Edit includes/prompts.php to change how the AI responds:
public static function your_new_prompt($text) {
return "Your custom prompt here: {$text}";
}- Added inline toolbar buttons (Grammarly-style)
- Added AI Improve quick action
- Improved modal UI
- Added support for 20+ languages
- Better error handling
- Initial release
- Basic grammar checking
- Content rewriting
- Dashboard settings page
Found a bug or have a feature idea? Please open an issue on GitHub!
This project is licensed under the GPL v2 or later - see the LICENSE file for details.
Created by: Krtrim
Contributor: Shyanukant Rathi
- Powered by Google Gemini API
- Built for WordPress Gutenberg Block Editor
- Inspired by Grammarly's inline editing experience
Need help? Here's how to get support:
- Check the Usage Guide above
- Search existing issues
- Open a new issue if needed
If you find this plugin helpful, please consider:
- Giving it a โญ star on GitHub
- Sharing it with others
- Contributing to the project
Made with โค๏ธ for the WordPress community