This is an example feature plugin package for CoCart. It is setup so that it can be installed as a standalone WordPress plugin, or included into CoCart as a Composer Package.
cocart-example-package.php
- The main plugin file. ONLY used when using this package as a plugin!load-package.php
- Same as the main plugin file but without the plugin header. Used when installed into CoCart as a package with composer. See guide for instructions.includes/class-cocart-example-package.php
- The package class requires 1 static method;init
- Init your package. If it needs to hook into WordPress, do so here.
Released under GNU General Public License v3.0.
We have different channels at your disposal where you can find information about the CoCart project, discuss it and get involved:
- 📖 Docs: this is the place to learn how to use CoCart API. Get started!
- 🧰 Resources: this is the hub of all CoCart resources to help you build a headless store. Get resources!
- 👪 Community: use our Slack chat room to share any doubts, feedback and meet great people. This is your place too to share how are you planning to use CoCart!
- 🐞 GitHub: we use GitHub for bugs and pull requests, doubts are solved with the community.
- 🐦 Social media: a more informal place to interact with CoCart users, reach out to us on Twitter.
- 💌 Newsletter: do you want to receive the latest plugin updates and news? Subscribe here.
CoCart Example Package is developed and maintained by Sébastien Dumont.
Founder of CoCart - Sébastien Dumont.
Website sebastiendumont.com · GitHub @seb86 · Twitter @sebd86