Create User with Profile and Cover Images using REST API
You may refer to avatar_urls https://developer.wordpress.org/rest-api/reference/users/#schema-meta.
You may refer to avatar_urls https://developer.wordpress.org/rest-api/reference/users/#schema-meta.
This question is from 9 months ago and maybe it is solved right now. but I’ll send the answer to help other people who may have this question: You have to install JWT plugin. Then, you have to create Bearer Token by POSTing a username and password to this address: https://example.com/wp-json/jwt-auth/v1/token In postman, you have … Read more
You can’t, WP_Query can sort by post meta value, but it can’t then use that value as a post ID, look up that post, then sort by a value on that other post. If you had a small number of posts, it could be done by manually sorting the results with PHP. Fundamentally, the data … Read more
Seems that WP_Query does not have the ability to query tags or categories. I ended up using the get_tags WordPress function and passed in the search term then merged the result with the WP_Query of the “places” endpoint. function placesSearch() { register_rest_route(‘placesdb/v1’, ‘search’, array( ‘methods’ => WP_REST_SERVER::READABLE, ‘callback’ => ‘placesSearchResults’ )); } function placesSearchResults($data) { … Read more
On line 252 you are using print_r() inside your code, which is printing out an error message before the proper response, so your response is not valid JSON anymore. If, as it appears, you want to include the output of print_r() in your error log, and not include it in the response, you need to … Read more
register_rest_route with method POST but in wp-json/ is showing GET
Upload Video using wordpress rest api with ionic
How to cache a custom API call?
wp_update_user very slow
You can and should totally do this in my opinion. Especially if you have a RESTful case. I personally only use admin-ajax for very simple things to almost no more.