change user password REST API

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

WP_Query: how to search tags in addition to a custom post type?

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)