Plug It In
WP custom plugin starter template with React and Webpack
by Michael Carr @ Hero Creative · github.com/hero-creative/plug-it-in
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/hero-creative/plug-it-in/archive/refs/heads/main.zipDeclares an update source (https://github.com/hero-creative/plug-it-in), so updates arrive through the plugin's own updater.
From the readme
Plug-It-In
v0.0.2 - A template for creating new Wordpress plugins using PHP, React, Webpack, and other technologies.
Technologies Used
- PHP
- React
- Webpack
Directories
- build-utils: Contains webpack configuration files for development and production builds.
- dist: Contains the compiled assets and files for the plugin.
- inc: Contains the PHP classes used for the plugin.
- nodemodules: Contains the dependencies required for the project.
- src: Contains the source code for the plugin.
Getting Started
1. Clone the repository to your local machine.
2. Install the dependencies by running npm install in the root directory of the project.
3. Compile the assets by running npm run build.
4. Upload the plug-it-in directory to your Wordpress installation's wp-content/plugins directory.
5. Activate the plugin in your Wordpress administration panel.
Building for Production
To compile the assets for production, run npm run build. The compiled assets will be located in the dist directory.
Contributing
We welcome contributions to the project. Please fork the repository and open a pull request with your changes.
License
The code in this repository is licensed under the MIT License.
Chan