Skip to content

CommonNinja/woocommerce-plugin-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

WooCommerce Template for Common Ninja's Apps

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.

How to use

  1. Download || clone this repo.
  2. 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.
  1. In the plugin-template folder, rename the plugin-template.php file to the slug name you chose in the previous step.
  2. Open the config.php file under the plugin-template folder 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 _inc folder as root).
  1. In the plugin-template file, change the meta data of the plugin (the comments on top).
  • Note, the Text Domain setting must be your plugin's slug.
  1. Edit and change the details on the readme.txt file under the plugin-template folder.
  • 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-template and assets folders).

Common Ninja documentation

Please find more information in Common Ninja's official docs.

Need help?

About

Quickly publish your Common Ninja app as a WooCommerce plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors