2ab28c977f
* Fixed hiding core task list This commit fixes the hiding of the core task list * Added tests * Added fix to readme.txt * Fixed readme.txt * Added new test * Hooks were fixed * Refactored task lists handling This commit refactors a few things related to the task lists handling * Added tests * Fixed task lists handling * Fixed tests * Renamed 'taskListHidden' to 'taskListsHidden' * Added taskListsHidden util * Fix completed tasks tracking infinite loop This commit fixes the completed tasks tracking infinite loop (for multiple extended tasks) * Refactored update check * Hide task list if there aren't any visible tasks * Fixed comment * Fixed typo * Renamed example method * Fixed example extension * Added tab to the extension example * Fixed extended task list enabling option * Added more tests * Added PHP tests * Fixed some comments * Removed utils.js file Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com> |
||
---|---|---|
.. | ||
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.