https://github.com/bacoords/example-ai-block
https://github.com/bacoords/example-ai-block
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bacoords/example-ai-block
- Owner: bacoords
- Created: 2024-08-31T14:36:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T20:31:31.000Z (almost 2 years ago)
- Last Synced: 2025-07-19T14:36:23.979Z (about 1 year ago)
- Language: PHP
- Size: 176 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Example AI Block
This tutorial repo registers a "Click to Tweet" block. The block shows an example tweet about the blog post and allows the user to click to tweet the message.
The block uses Open AI to generate a tweet message by defining an OpenAI API key in your `wp-config.php` file.
```php
define( 'OPENAI_KEY', 'sk-XXXXXXXXXXXXXXXXXXXXXXXX' );
```
## Video Tutorial
Coming soon!