Closed drwatsoncode closed 4 years ago
Hi @drwatsoncode !
Thanks for your comment and feedback. We have worked hard on this project since a few month and released finally a complete rewrite of the boilerplate. If you want to checkout: https://devowlio.gitbook.io/wp-react-starter/ 🙂
Custom API endpoints: Now you will have a HelloWorld
file which demonstrates a simple REST API endpoint. The known /plugin
is not part of the utils
package which is mandatory for the boilerplate itself.
Data storage: This sounds interesting and we should consider this in the future. Since we have released now v2 of the boilerplate we do not work on new features - only focus on bugs.
Shortcode: We are working on video tutorials in the future to showcase how for example shortcodes can be implemented. Generally, create a new endpoint file in your TypeScript source and enqueue it when needed through Assets
.
Cannot use Widget: This should be fixed with the newest version.
If you are already using the boilerplate you need to manually migrate to the boilerplate. Since the building process of the plugin itself is still the same you need to migrate your PHP and JS coding. JS should be moved to TypeScript as it is is more maintainable and scalable.
Best regards, Matthew
Closed due to inactivity. Please reopen.
First of all, thank you for all your hard work putting this project together. It is a wonderful collection of tools and technologies.
I am experienced with React, but new to WordPress, and there are some features I expected to find in this starter that are either absent or that I have not been able to find (perhaps due to my inexperience with WordPress).
/plugin
endpoint of the WordPress REST API, but there is no example (that I can see) of creating or consuming a custom endpoint. EDIT: I was wrong. Theinc/rest/Service.class.php
file does create a REST endpoint at/plugin
(under the RESTSERVICE_NAMESPACE
). I was confused because WordPress exposes a built-in REST service at/plugin
. Perhaps wp-reactjs-starter should use a different name for its example endpoint.Thank you so much again for your great project. I would very much appreciate if you could clear up my confusion on a few of the issues above. Thanks!