REST access to user Taxonomy
-
Very cool plugin, appears to be just about what I need. I used it to create a taxonomy called members, where members can be Regular, student, inactive etc. As my application depends on Javascript and the REST API I added :
‘show_in_rest’ => true,
‘rest_base’ => ‘member’,
and when I access the API at wp-json/wp/v2/member I get a listing with all member types and Id as expected. However I need to list all users of a member type so I was expecting wordpress/wp-json/wp/v2/user/?member=39 would give me a list of users with member id of 39. However it appears to ignore the ?members=39 and just returns all users.for reference I was looking at: https://jerryjones.dev/2018/03/26/taxonomy-queries-with-wordpress-v2-rest-api/ which has a similar example only for posts.
Is something missing in the /Users endpoint that prevents this from working?
Thanks for the plugin.
- The topic ‘REST access to user Taxonomy’ is closed to new replies.