b642576e34
* Updated mobile banner icon with cross-small gridicon * Update analytics dashboard icons, removing use of dashicon * Remove use of dash icon in tag component * Remove dash icon from ellipsis menu * Remove use of dashicon in calendar * Update icon imports and remove use of Dashicon in collapsible list * Remove Dashicon usage from store alerts as it is depreciated * Remove dashicon usage in shipping label * Fix up old css for icons * Removed dashicon usage in favorite button * Update the wordpress/icons package * Add changelogs * Fix broken test |
||
---|---|---|
.. | ||
add-navigation-items | ||
add-report | ||
add-task | ||
dashboard-section | ||
important-admin-notice | ||
sql-modification | ||
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.sql-modification
- An example of how to modify SQL statements.