admin管理员组文章数量:1431398
By default, wordpress only shows you the users who have posted on the site through the /wp-json/wp/v2/users
I want to fetch all users whether they have posted or not (using wordpress as a headless cms)
Retrieve all users from wordpress database via REST/JSON API
this link above explains it and it is very straight forward but it is implemented when the rest api was a plugin before it became a core part of wordpress (hence it mentions that to modify something in the rest-api plugin)
is there a way to do a filter to show all users in wordpress like to write a filter function inside of the functions.php file inside of the theme or is there something else ?
本文标签: Fetching all users that didn39t post with rest api (current version 2)
版权声明:本文标题:Fetching all users that didn't post with rest api (current version 2) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745532090a2662107.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论