If your aim is to interact remotely with any other WordPress site that is on our installation, the best method for sending HTTP requests is thought to be the
WP HTTP API. It is also considered that the code provided will send a
DELETE request to any other WordPress installation that has the basic authentication turned on within
WP REST API.
It's good that we have gone through how basic authentication works, as this will come in very handy in further parts of the tutorial, in which we will mainly be using this method for performing any kind of data manipulation.
Within this part of the tutorial, we have exclusively focused on the basic authentication method supported by the
WP REST API. As stipulated here, using this method on live websites is dangerous and foolish, given how easily credentials can be decoded and then further abused.
Another thing we have looked at in this article is the process of testing the authentication method we discussed...