Giter VIP home page Giter VIP logo

codeandbeauty-starter-plugin's Introduction

WordPress Starter Plugin

A convenient source to create a WordPress plugin.

codeandbeauty-starter-plugin is equip with classes and tools to start developing your desired plugin.

Installation

Clone this repository inside /wp-content/plugins/ directory of your WordPress installation.

git clone https://github.com/codeandbeauty/starter-plugin.git

Usage

Manual Customization:
  • Change the class prefix CodeAndBeauty into your desired prefix. Class prefix usually the same with your plugin name (i.e. MySimplePlugin)
  • Change all instances of codeandbeauty to your plugin slug (i.e. mysimpleplugin)
  • Change all instances of TEXTDOMAIN, the domain slug, into your desired domain slug

Your all set and ready to start building your awesome WordPress plugin.

Auto Generation

You can use Gulp or Grunt to generate your new plugin.

Parameters:

  • --folder = The name of folder/directory of your new plugin.
  • --name = The name use as class prefix i.e. YourPluginName
  • --slug = The slug use as prefix both action/filter hooks, function names, and other area that require prefixes.
  • --domain = The domain slug of your plugin. If empty, it will use whatever string set in --slug

Using Grunt

$ grunt create-plugin --folder=your-plugin-name --name=YourPluginName --slug=yourpluginname --domain=cad

Using Gulp

$ gulp create-plugin --folder=your-plugin-name --name=YourPluginName --slug=yourpluginname --domain=cad
What this command do?
  • It generates a new folder
  • It changes the file, class, and slug names.
What's next?

Change the plugin name, description, version, author etc at the main plugin file. (i.e. codeandbeauty.php)

Start developing your awesome WordPress plugin!

codeandbeauty-starter-plugin's People

Contributors

codeandbeauty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.