woocommerce/plugins/woocommerce-admin/docs/examples/extensions
Jeff Stieler 5b905025fc Merge pull request woocommerce/woocommerce-admin#2526 from woocommerce/add/311-report-csv-exporter-endpoint
Add Report CSV Export Endpoint
2019-07-03 08:43:18 -06:00
..
add-report Extensions: fix registering a page 2019-05-24 11:42:01 +12:00
dashboard-section Fix wrong average numbers in chart legends (https://github.com/woocommerce/woocommerce-admin/pull/2352) 2019-06-11 14:31:53 +02:00
table-column Add schema modification to Table Column example plugin. 2019-06-28 11:09:41 -06:00
README.md Examples: Update README (https://github.com/woocommerce/woocommerce-admin/pull/2554) 2019-07-02 08:34:37 -07:00
examples.config.js Extensions: Add Dashboard Section 2019-05-23 08:27:59 +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. dashboard-section - Adding a custom "section" to the new dashboard area. table-column - An example of how to add column(s) to any report.