Repository files navigation
Install recommended plugins
Update variables in docker.env
Update plugin header in your-plugin.php
Rename your-plugin, YourPlugin and YourOrg
Recommend to use vscode search-replace.
Located in:
Composer.json: org, plugin, namespace
your-plugin.php: comments
Plugin name constant in plugin.php
Namespace in all php files
text domain in
Run composer install
Run npm install
npm run start
Reuse or remove Dummy class
Hooked in to admin_menu method in Plugin
Reuse or remove dummy-menu app
Inserted into admin menu in the Dummy class
Wordpress runs in docker, react is built locally.
OOP design
When object needs to be hooked in to wordpress
Instantiate object in loader and add hook there
React included
use ReactApp class to add react app divs, scripts and styles.
Create a new react app by adding a folder to the app folder and including an index.(js, jsx, ts or tsx) file
Requires restart of wp-scripts (included in start script)
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.