17514872ad
* Remove wcSettings dependency from currency and number packages. Either take a configuration object in function calls or in a new class constructor. * Use new Currency class and number format methods in client/. Compose with store settings to keep the same API. * Don't reintroduce lodash dependency to currency package. * Add changelog entries to currency and number packages. * Update docs, example, and changelog for AdvancedFilters component. * Use precision-less formatValue() for integer report values. * Make Currency instance immutable. |
||
---|---|---|
.. | ||
add-report | ||
add-task | ||
dashboard-section | ||
table-column | ||
README.md | ||
examples.config.js |
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.add-task
- Create a custom task for the onboarding task list.dashboard-section
- Adding a custom "section" to the new dashboard area.table-column
- An example of how to add column(s) to any report.