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)