2019-04-09 00:39:11 +00:00
# WooCommerce Admin Extension Examples
Examples for extending WooCommerce Admin
## Directions
Install dependencies, if you haven't already.
```bash
2022-03-04 04:01:16 +00:00
pnpm install
2019-04-09 00:39:11 +00:00
```
2022-03-04 04:01:16 +00:00
Build the example extension by running the pnpm script and passing the example name.
2019-04-09 00:39:11 +00:00
2023-05-18 03:21:53 +00:00
2019-04-09 00:39:11 +00:00
```bash
2023-10-23 20:08:03 +00:00
WC_EXT=< example > pnpm --filter=@woocommerce/admin-library example
2019-04-09 00:39:11 +00:00
```
2023-05-18 03:21:53 +00:00
You should see a new directory in `./woocommerce/plugins/{example} path.` Include the output plugin in your `.wp-env.json` or `.wp-env.override.json` and restart the WordPress instance. WooCommerce will now reflect the changes made by the example extension.
2019-04-09 00:39:11 +00:00
You can make changes to Javascript and PHP files in the example and see changes reflected upon refresh.
## Example Extensions
2019-07-09 17:30:04 +00:00
- `add-report` - Create a "Hello World" report page.
2019-10-21 03:11:21 +00:00
- `add-task` - Create a custom task for the onboarding task list.
2019-07-09 17:30:04 +00:00
- `dashboard-section` - Adding a custom "section" to the new dashboard area.
- `table-column` - An example of how to add column(s) to any report.
2019-12-16 18:16:46 +00:00
- `sql-modification` - An example of how to modify SQL statements.
2023-05-18 03:21:53 +00:00
- `payment-gateway-suggestions` - An example of how to add a new payment gateway suggestion