WP REST API
-
If you just started using the Basic Auth plugin for authentication, you might come across issues like 401 (unauthorized) that prevents you from making authenticated requests, even though your code and credentials are correct. Here are two possible solutions to that: 1. Tweak .htaccess fileOpen up the .htaccess file and add the following lines: The…
-
Recently, I have been working on this React project that allows users to upload some documents which will be tagged to their profile. My initial thought was to figure out how to use the WP REST API to upload to the Media Library. After that’s done, I would need to save the URL of the…
