611903ef5d
* Separate onboarding concerns into separate classes * Fix up onboarding product types * Fix up references to profile data option * Fix up call to allowed themes * Move onboarding features to internal namespace * Remove old onboarding redirect * Fix failing tests * Add changelog entry * Move inernal classes to the new src-internal folder * Fix lint error * Add deprecated class for Onboarding * Add empty construct method * Remove some of the unnecessary static functions and make sure OnboardingTasks still gets initialized * Fix missed changes during rebase * Fix tests Co-authored-by: Lourens Schep <lourensschep@gmail.com> |
||
---|---|---|
.. | ||
add-abbreviated-notification | ||
add-navigation-items | ||
add-report | ||
add-task | ||
dashboard-section | ||
important-admin-notice | ||
payment-gateway-suggestions | ||
simple-inbox-note | ||
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.
pnpm install
Build the example extension by running the pnpm script and passing the example name.
pnpm 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.