Skip to content

cocart-headless/cocart-example-package

Repository files navigation

CoCart Example Package

Headless API for Developers


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.

Main directories and files

  • 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.

License

Released under GNU General Public License v3.0.


CoCart API Channels

We have different channels at your disposal where you can find information about the CoCart project, discuss it and get involved:

Twitter: cocartapi CoCart GitHub Stars

  • 📖 Documentation: this is the place to learn how to use CoCart API. Get started!
  • 👪 Community: use our Discord 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 X/Twitter.

Credits

Website cocartapi.com  ·  GitHub @co-cart  ·  X/Twitter @cocartapi Facebook  ·  Instagram

About

Example package for a CoCart feature plugin that can also be installed as a standalone WordPress plugin.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors