https://github.com/dynojp/gpt-wordpress-plugin-generator
A script to generate WordPress plugins using the OpenAI ChatGPT API.
https://github.com/dynojp/gpt-wordpress-plugin-generator
openai wordpress
Last synced: 4 months ago
JSON representation
A script to generate WordPress plugins using the OpenAI ChatGPT API.
- Host: GitHub
- URL: https://github.com/dynojp/gpt-wordpress-plugin-generator
- Owner: dynojp
- Created: 2024-08-09T07:21:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-13T08:12:57.000Z (12 months ago)
- Last Synced: 2026-01-29T21:35:20.853Z (5 months ago)
- Topics: openai, wordpress
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordPress plugin generator with OpenAI ChatGPT
A script to generate WordPress plugins using the OpenAI ChatGPT API.
## Prerequisites
- Python `>=3.12.0`
- Poetry `>=1.8.3`
- OpenAI API key
## Usage
Get OpenAI API key and set it to an environment variable `OPENAI_API_KEY`.
```bash
export OPENAI_API_KEY=...
```
Install dependencies.
```bash
poetry install
```
If you prefer not to use Poetry, install `click` and `openai` with `pip` directly in a venv.
```bash
pip install 'click~=8.1' 'openai~=1.40'
```
Once dependencies are installed, run the script.
```bash
poetry run python main.py
```
## Samples
```bash
por python main.py \
--name='disable-search' \
--prompt='Make a plugin to disable the WordPress core search function.'
```