Рет қаралды 21,138
In this episode we are going to be using #WordPress #REST API to add some new posts to our database with vanilla #JavaScript.
As you will see this is very similar to what we did in this( • Next.js + Strapi - Add... ) Next.js and Strapi series episode. This is because we used #JWT authentication in both cases. So we will firstly authenticate ourselves to the WordPress installation using JWT, and then we will add some data to our posts with the token provided from JWT. This a super easy way to add authentication and allow your users to create content from the frontend of your site.
Code used in this video
bit.ly/2HADltN
You can support my work on Patreon
/ watchlearn
Follow me on Social Media
Github: github.com/iva...
Twitter: / ivan_doric
Instagram: / watchlearntuts
Facebook: / watchlearntutorials