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/stoph/ai-lorem-ipsum/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
AI Lorem Ipsum WordPress Plugin
A simple WordPress plugin that allows content creation inside Gutenberg blocks using OpenAI's API.
Features
- Custom Gutenberg block
/ai-lorem-ipsum - OpenAI integration for AI-powered content generation
- Admin settings page for API key configuration
- Generated content automatically creates individual paragraph blocks
- Simple and efficient codebase
Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin through the WordPress admin
- Go to Settings > AI Lorem Ipsum to configure your OpenAI API key
Usage
-
Configure API Key:
- Go to Settings > AI Lorem Ipsum in your WordPress admin
- Enter your OpenAI API key (get one from OpenAI Platform)
-
Use the Block:
- In the Gutenberg editor, add a new block
- Search for "AI Lorem Ipsum" or type
/ai-lorem-ipsum - Enter your content prompt
- Select the number of paragraphs (1-10)
- Click "Generate Content"
-
Result:
- The AI Lorem Ipsum block will be replaced with individual paragraph blocks
- Each paragraph can be edited independently
- Content is generated based on your prompt using OpenAI
Requirements
- WordPress 5.0+ (Gutenberg editor)
- PHP 8.2+
- OpenAI API key
Security Features
- Nonce verification for AJAX requests
- User capability checks
- Input sanitization and validation
- Secure API key storage
File Structure
ai-lorem-ipsum/
├── ai-lorem-ipsum.php # Main plugin file
├── includes/
│ ├── block.php # Gutenberg block registration
│ └── api.php # OpenAI API handler
├── assets/
│ └── js/
│ └── block.js # Block editor JavaScript
└── README.md
License
This plugin is provided as-is for educational purposes.