With the WooCommerce template you'll be able to quickly publish your app as a WooCommerce plugin.
This template will use Common Ninja's API to authenticate your app with WooCommerce, and will load automatically the redirect URL you defined in your Common Ninja app.
- Download || clone this repo.
- Change the main folder's name (
plugin-template) to your plugin's slug name.
- The plugin's slug name must be unique, lower and kebab case.
- In the
plugin-templatefolder, rename theplugin-template.phpfile to the slug name you chose in the previous step. - Open the
config.phpfile under theplugin-templatefolder and change the following details:
cn_app_id- Your public Common Ninja's app ID.plugin_name- The name of the plugin as it will appear on Wordpress's menu.plugin_icon- The icon of the plugin as it will appear on Wordpress's menu. (accepts url, base64 format, or relative path from the_incfolder as root).
- In the
plugin-templatefile, change the meta data of the plugin (the comments on top).
- Note, the
Text Domainsetting must be your plugin's slug.
- Edit and change the details on the
readme.txtfile under theplugin-templatefolder.
- Please note, the actual folder that you'll use for pushing your code to Wordpress's SVN repo is the main folder (the one that includes the
plugin-templateandassetsfolders).
Please find more information in Common Ninja's official docs.
- Join our Discord community: https://discord.com/invite/cxqUTbvMNd
- Contact us at contact@commoninja.com