How to get, delete or publish wordpress post from powershell using Rest API?
Yes, this is possible to get/set wordpress data using rest api. This is very simple and quick way to publish, delete or get post from anywhere.
Step 1 – install “JSON Basic Authentication” and “WP REST API” by WP REST API Team , you might want to see this for interested plugins.
Step 2 – below is code to get, delete, post method. you must have to pass username and password for basic authentication.
[gistpen id=”444″]
Output –