A demonstration plugin showcasing the integration and capabilities of the WordPress AI Client library. This plugin demonstrates how to build AI-powered features in WordPress using both PHP and JavaScript.
WP AI Client Demo provides a practical example of integrating AI capabilities into WordPress. It demonstrates:
- Text generation using AI
- Image generation using AI
- Creating WordPress posts with AI-generated content and featured images
- Custom WordPress Abilities API integration
- Admin interface for interacting with AI features
- WordPress 6.0 or higher
- PHP 8.0 or higher
- Composer
- Node.js and npm (for building JavaScript assets)
- API credentials for an AI provider (configured through the WP AI Client)
-
Clone or download this plugin to your WordPress plugins directory:
cd wp-content/plugins git clone [email protected]:jonathanbossenger/wp-ai-client-demo.git
-
Install PHP dependencies:
cd wp-ai-client-demo composer install -
Install JavaScript dependencies and build assets:
npm install npm run build
-
Activate the plugin through the WordPress admin interface or via WP-CLI:
wp plugin activate wp-ai-client-demo
-
Configure your AI provider credentials as required by the WP AI Client library
Access the demo tools page from the WordPress admin:
- Navigate to Tools > WP AI SDK Demo in your WordPress admin
- Use the interface to test AI capabilities
GPL-2.0-or-later
Jonathan Bossenger