# Orders per Page in My Account

> Changes how many orders appear on each page of the My Account Orders list.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, my-account, orders
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-my-account-orders-per-page/

## Code

```php
add_filter( 'woocommerce_my_account_my_orders_query', function ( $args ) {
    $args['limit'] = 20; // Orders per page.

    return $args;
} );
```

## Notes

""

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Orders per Page in My Account" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
