Calling a python script from custom wordpress rest api returns null

Thanks @JacobPeattie. I realize now after going through a few more articles that the problem was indeed not with wordpress but php and i was looking at the wrong place. The solution I found, I will write it down here just in case: putenv(‘PYTHONPATH=C:\xampp\htdocs\mil\mypython\venv\Lib\site-packages’); The problem was indeed with php. I found the answer only … Read more

How to get the most recently updated orders via the REST API?

As it turns out, it’s only possible to query the orders after a certain time with the legacy v3 WooCommerce REST API with the filter[updated_at_min] parameter, not with the new v3 WooCommerce REST API. I also want to query the customers who recently updated their data, which is impossible with any versions of the WooCommerce … Read more

Need to get user data via API

So wp-json/wp/v2/users/<#id> is only going to give you back basic data on that user, which is what I don’t think you are looking for. Where are you storing and editing consumer_key and consumer_secret? The WordPress Rest API only makes certain pieces of data available out of the box. Sounds like you’d have to extend your … Read more

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