How can i filter number of orders per page in My Account?

function function_my_account_orders( $args ) {
    $args['posts_per_page'] = 6;// change the number 6 with your own
    return $args;
}
add_filter( 'woocommerce_my_account_my_orders_query', 'function_my_account_orders', 10, 1 );

Leave a Reply

Your email address will not be published. Required fields are marked *