Coder Social home page Coder Social logo

qant / wordpress-base-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmhendricks/wordpress-base-plugin

0.0 2.0 0.0 1.19 MB

A starter template for WordPress plugins, with autoloading, namespaces and object caching (where available).

License: GNU General Public License v2.0

PHP 77.41% JavaScript 17.79% CSS 4.80%

wordpress-base-plugin's Introduction

Author Latest Version GitHub License Flywheel Donate Analytics Twitter

WordPress Base Plugin

Description

This is a boilerplate WordPress plugin featuring namespace autoloading and Carbon Fields examples. It is intended to be used as a starting point for creating WordPress plugins. It contains several examples and dependencies to get you started.

It may also be used as the means of separating custom code from the theme or extending a child theme.

Contributing

Here are some ways that you can contribute:

  • Suggest improvements and/or code them.
  • Report bugs and/or incompatibilities.
  • Host your sites with Flywheel, use KeyCDN for speedy delivery of assets.

Features

Requirements

  • WordPress 4.8 or higher
  • PHP 7 or higher
  • Carbon Fields 2.2 or higher. See the wiki section Carbon Fields for more info.
    • Carbon Fields is only required for the demo. You're welcome to strip out references if you do not wish to use it.

Installation

If you need tips on installing Node.js, Composer, Gulp & Bower, see Installing Dependencies.

The short version:

  1. Clone repository to your plugins directory
  2. Change the four variables in package.json. Modify plugin.json as necessary.
  3. Run npm install; gulp rename; composer install
  4. (optional) For some of the included examples to work, you'll also want to run: bower install; gulp;

You'll want to delete features that you don't like (such as references to TGMPA if you don't need it).

Clone Repository

  1. At command prompt, change to your wp-content/plugins directory.
  2. Clone the repository: git clone https://github.com/dmhendricks/wordpress-base-plugin.git
  3. Renamed the newly created wordpress-base-plugin directory to your own plugin slug.

Next Steps

See the Getting Started documentation for further steps.

Future Goals

  • Add plugin uninstall.php
  • Switch to webpack for frontend dependency management
  • Remove or replace wordpress-settings-api-class example with something actively developed
  • Clean up Carbon Fields custom CSS classes
  • Add automatic GitHub update example
  • Add Gutenberg block examples

Screenshot

Settings Page

wordpress-base-plugin's People

Contributors

dmhendricks avatar

Watchers

James Cloos avatar Anton 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.