https://github.com/xwp/wp-foo-bar
WordPress plugin template for extending Gutenberg
https://github.com/xwp/wp-foo-bar
gutenberg-plugin gutenberg-plugin-scaffold wordpress-plugin wordpress-plugin-scaffold xwp
Last synced: 3 months ago
JSON representation
WordPress plugin template for extending Gutenberg
- Host: GitHub
- URL: https://github.com/xwp/wp-foo-bar
- Owner: xwp
- License: gpl-2.0
- Created: 2015-02-01T22:53:31.000Z (almost 11 years ago)
- Default Branch: develop
- Last Pushed: 2025-03-27T20:39:55.000Z (10 months ago)
- Last Synced: 2025-03-30T07:11:21.182Z (10 months ago)
- Topics: gutenberg-plugin, gutenberg-plugin-scaffold, wordpress-plugin, wordpress-plugin-scaffold, xwp
- Language: PHP
- Homepage: https://join.xwp.co
- Size: 7.1 MB
- Stars: 75
- Watchers: 36
- Forks: 17
- Open Issues: 29
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- License: LICENSE
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
# Foo Bar Plugin for WordPress

WordPress plugin template for extending Gutenberg at XWP.
**Contributors:** [xwp](https://profiles.wordpress.org/xwp)
**Requires at least:** 5.0
**Tested up to:** 5.3.2
**Stable tag:** 0.0.1
**License:** [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
[](https://badge.fury.io/gh/xwp%2Fwp-foo-bar) [](https://travis-ci.com/xwp/wp-foo-bar) [](https://coveralls.io/github/xwp/wp-foo-bar) [](http://gruntjs.com)
## Description ##
**Scaffolding**
Use the [`init-plugin.sh`](init-plugin.sh) bash script to scaffold a new plugin. The script will enter an interactive shell on your host machine and copy this plugin while making necessary string replacements:
```bash
./init-plugin.sh
```
The `init-plugin.sh` script will be removed from the generated plugin. You should also update your `readme.txt` and add/change any of the config files your project may need, read more about your options in the [`xwp/wp-dev-lib/readme.md`](https://github.com/xwp/wp-dev-lib) file.
**Coveralls Pro**
To use Coveralls Pro with your private repository you will need to change the `service_name` inside `.coveralls.yml` to `travis-pro`, and add the `COVERALLS_REPO_TOKEN` to the settings in Travis CI. If you don't want to use Coveralls then you will need to delete the `.coveralls.yml` and remove `npm run test:js:coveralls` step from the script section in the `.travis.yml` file.
**Adding Classes**
When adding a new class you should instantiate it in `Plugin::init` and inject `Plugin` as a dependency. There is a `Sample` class inside the `php` directory that demonstrates this behavior and how doc hooks work.
## Installation ##
1. Upload the folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
## Frequently Asked Questions ##
### A question that someone might have ###
An answer to that question.
## Getting Started ##
If you are a developer, we encourage you to [follow along](https://github.com/xwp/wp-foo-bar) or [contribute](https://github.com/xwp/wp-foo-bar/contributing.md) to the development of this plugin on GitHub.
## Screenshots ##
### Look at this demo photo!

## Changelog ##
For the plugin’s changelog, please see [the Releases page on GitHub](https://github.com/xwp/wp-foo-bar/releases).