https://github.com/generoi/wp-plugin-boilerplate
A wordpress boilerplate plugin with which you can write ES6 JavaScript and SASS.
https://github.com/generoi/wp-plugin-boilerplate
Last synced: 6 months ago
JSON representation
A wordpress boilerplate plugin with which you can write ES6 JavaScript and SASS.
- Host: GitHub
- URL: https://github.com/generoi/wp-plugin-boilerplate
- Owner: generoi
- Created: 2017-08-10T17:39:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T16:13:45.000Z (about 2 years ago)
- Last Synced: 2025-05-30T13:49:54.103Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 646 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wp-plugin-boilerplate
> A boilerplate WordPress plugin
## Requirements
_Does the plugin have any requirements?_
## Features
_A list of features_.
## API
_Any hooks exposed?_
```php
// Load recaptcha script.
add_filter('gravityforms-timber/options', function ($options) {
$options['recaptcha'] = true;
});
```
## Development
Install dependencies
composer install
npm install
Run the tests
npm run test
Build assets
# Minified assets which are to be committed to git
npm run build:production
# Watch for changes and re-compile while developing the plugin
npm run start
## Translations
wp i18n make-pot . languages/wp-plugin-boilerplate.pot
wp i18n make-mo languages/