D
D
denism3002020-08-24 13:46:15
WordPress
denism300, 2020-08-24 13:46:15

How to get the ID of all products from the current request without pagination?

For example, there is an n-th number of products that are displayed in this category with a breakdown of 12 products per page.
If we take
WC()->query->get_main_query();
it, then on each page of the current heading there will be products taking into account pagination.
And how can I get the ID of all products from the current request without pagination?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question