Skip to content
/ wordpress-plugin Public template

A simple WordPress plugin boilerplate with Vite, Vue and Tailwind in OOP Principle

Notifications You must be signed in to change notification settings

devkabir/wordpress-plugin

Repository files navigation

WordPress Plugin

A simple WordPress plugin boilerplate

Description

This is a foundation for building WordPress plugins.

Technologies

  • vue.js The Progressive JavaScript Framework.
  • Vite Next Generation Frontend Tooling.
  • tailwindcss Rapidly build modern websites without ever leaving your HTML.
  • Notyf A minimalistic JavaScript library for toast notifications.
  • jQuery * A minimalistic JavaScript library for frontend. It's optional. you can use this wordpress script dependency.

Features

  • Check used Technologies features.
  • It replaces all placeholder strings during plugin creation.
  • It generates independent styles for both frontend and backend with any conflict with WordPress core and any plugin or themes.
  • It makes zip for test plugin throughout a team by one command.
  • It makes production build, push updates to GitHub and revert all changes from production to development with one command.
  • You can manage your plugin license and support with this. N.B. You will need a management system. you can check out my WordPress Plugin Management System

Requirements

  • node.js v18.12.1
  • npm v9.2.0
  • PHP v7.4
  • VS Code extension DEVSENSE.phptools-vscode

For Fresh Start

Dev version with dummy content

composer create-project devkabir/wordpress-plugin:dev-master <your-plugin-name>

Dev version with no content

composer create-project devkabir/wordpress-plugin:dev-fresh <your-plugin-name>

Dev version for admin side only

composer create-project devkabir/wordpress-plugin:dev-only-admin <your-plugin-name>

Documentation

Recommended Plugins

For nice error page, install wp-debugger

For visual learners

Featuring Dev version for admin side only

Video Title