Skip to content

A script to generate WordPress plugins using the OpenAI ChatGPT API.

Notifications You must be signed in to change notification settings

dynojp/gpt-wordpress-plugin-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

export OPENAI_API_KEY=...

Install dependencies.

poetry install

If you prefer not to use Poetry, install click and openai with pip directly in a venv.

pip install 'click~=8.1' 'openai~=1.40'

Once dependencies are installed, run the script.

poetry run python main.py

Samples

por python main.py \
  --name='disable-search' \
  --prompt='Make a plugin to disable the WordPress core search function.'

About

A script to generate WordPress plugins using the OpenAI ChatGPT API.

Topics

Resources

Stars

Watchers

Forks

Languages