Get all products from Woocommerce using REST API

后端 未结 7 1894
鱼传尺愫
鱼传尺愫 2020-12-18 16:12

I am trying to retrieve all products using rest api. I have read this question. I am using postman to make calls. Here is my query

https://squatwolf.com/wp-j         


        
相关标签:
7条回答
  • 2020-12-18 16:52

    add code to function.php

    function maximum_api_filter($query_params) {
        $query_params['per_page']["maximum"]=100000;
        return $query_params;
    }
    
    add_filter('rest_product_collection_params', 'maximum_api_filter');
    
    0 讨论(0)
提交回复
热议问题