No X-WP-Total and X-WP-TotalPages Headers sent from api

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Marketplace – REST API No X-WP-Total and X-WP-TotalPages Headers sent from api

Viewing 0 reply threads
  • Author
    Posts
    • #128350
      justin.doerre
      Participant

      Hi,

      Im currently calling the rest api (<site_base_url>/wp-json/wcfmmp/v1/orders/) to receive the orders of a vendor.
      (calling this via jquery from frontend)
      This is working but in order to implement proper pagination i need the page count and total order count.

      It seems, that the
      X-WP-Total
      X-WP-TotalPages

      Headers are not included in the response. I gett null if i try to get these.

      But the header
      Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages

      is set, but no data for them.

      Is this a bug? Or do you have any suggestions

      Best Regards
      JD

Viewing 0 reply threads
  • You must be logged in to reply to this topic.