woocommerce / woocommerce/wc-api-php

Suggested functionality for total items and pages count

Open
#304 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
PHP
Stars
546
Forks
158
Avg merge
3h 21m
Merged PRs (30d)
2

Description

Hi there,

As I was looking to get the count of all orders in my case, I saw that this information wasn't returned. From the documentation I checked that the total count and total pages are returned in the headers. Header field names are: "X-WP-Total", "X-WP-TotalPages". This is only a suggestion. Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the PHP library handles REST responses and response headers, focusing on where pagination information is currently exposed. Confirm how X-WP-Total and X-WP-TotalPages are returned, then define the public result shape and verify that callers can access both counts.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.