[英]WordPress Rest API Response Count
I have WordPress Rest API used to retrieve all the users.我有用于检索所有用户的 WordPress Rest API。 https://developer.wordpress.org/rest-api/reference/users/#list-users .
https://developer.wordpress.org/rest-api/reference/users/#list-users 。 my Wordpress site contains more than 10 users.
我的 Wordpress 站点包含 10 多个用户。 But here response contains only 4 users.
但这里的响应只包含 4 个用户。
how to retrieve all the user?如何检索所有用户?
Thanks in advance.提前致谢。
Regards, Mani c问候, 躁狂症
I think the easiest method is to use Pagination for example - if you wanted to retrieve 20 users我认为最简单的方法是使用分页,例如 - 如果你想检索 20 个用户
yourdomain/wp-json/wp/v2/users?per_page=20
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.