woocommerce/plugins/woocommerce-admin/docs/examples/extensions
Paul Sealock 9c8e0ff666 Merge pull request woocommerce/woocommerce-admin#2018 from woocommerce/try/extension-build-env
Try: Extension Examples
2019-04-17 15:12:42 +12:00
..
add-report Merge pull request woocommerce/woocommerce-admin#2018 from woocommerce/try/extension-build-env 2019-04-17 15:12:42 +12:00
README.md Example Extensions: create build environment 2019-04-17 14:01:56 +12:00
examples.config.js Example Extensions: create build environment 2019-04-17 14:01:56 +12:00

README.md

WooCommerce Admin Extension Examples

Examples for extending WooCommerce Admin

Directions

Install dependencies, if you haven't already.

npm install

Build the example extension by running the npm script and passing the example name.

npm run example -- --ext=<example>

Go to your Wordpress installation's plugins page and activate the plugin. WooCommerce Analytics reports will now reflect the changes made by the example extension.

You can make changes to Javascript and PHP files in the example and see changes reflected upon refresh.

Example Extensions

add-report - Create a "Hello World" report page.