Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM Marketplace – REST API › Search Rest api endpoint
- This topic has 5 replies, 2 voices, and was last updated 4 years, 4 months ago by Sayan Naskar.
- AuthorPosts
- December 6, 2019 at 11:25 am #96240NielsParticipant
what is the rest api for getting all users search by name? because when i used this url http://192.168.0.32/gigantv2.com.ph//wp-json/wp/v2/users/?search=key
i only get limited value - December 7, 2019 at 10:08 am #96357Sayan NaskarKeymaster
Hello,
Rest api always shows 10 data per page by default at a time. This is to avoid larger fetching time, it is default in WordPress. To get data of a perticular page number use page=query parameter and to increase no of data per page use per_page= parameter http://192.168.0.32/gigantv2.com.ph//wp-json/wp/v2/users/?search=key&per_page=20&page=2
This will be tha url structure. - December 9, 2019 at 11:18 am #96677NielsParticipant
how about the rest api for getting store vendor and search by name ?
im getting all the store vendor using this api but i cant filter it
https://gigant.com.ph//wp-json/wcfmmp/v1/store-vendors?per_page=15 - December 9, 2019 at 11:58 am #96681Sayan NaskarKeymaster
Hello,
In the rest API of both WordPress and WCFM currently, there is no option of filtering users by name. - December 9, 2019 at 12:18 pm #96684NielsParticipant
hi thank you for your response, can i just get the query instead ?
- December 9, 2019 at 12:37 pm #96689Sayan NaskarKeymaster
Hello,
You can check the link: https://wordpress.stackexchange.com/questions/105168/how-can-i-search-for-a-worpress-user-by-display-name-or-a-part-of-it
You can create your own custom search query for the users in this method.Thank You.
- AuthorPosts
- The topic ‘Search Rest api endpoint’ is closed to new replies.