My recommendation for hosting your WordPress website is DreamHost and specifically their "Shared Unlimited" yearly plan (the exact plan I've used for 19 years). If you use my link to DreamHost it helps support my RUclips channel and costs you nothing extra: click.dreamhost.com/aff_c?offer_id=8&aff_id=17231
Brad you changed my life with the recent WORDPRESS COURSE. Hope to get some woo commerce from you reason being you explain process by process. LONG LIVE
Hi Brad, This video just helped me a bunch! I have taken both your Wordpress course and your REACT course and have loved them and found them very useful. Since then, however, I have been trying to figure out how to use libcurl in my free standing C application to log in to my web site through the normal admin interface so I can then use my REST API's. Although I might have eventually succeeded, this approach is just head and shoulders above that in terms of simplicity. Thanks a million! You are a very good teacher. I appreciate your dedication to the subjects you teach, the depth you go into them and the way you make them clear.
No doubt, you're the best teacher ever. I've bought 5 of your courses and all of them deserve 5 stars. Btw around 6:17, your cat is saying something :)
Hi Brad! First of all thank you for uploading these tutorials for free. (I've also purchased all your premium courses on udemy! ) After watching your RUclips coding bootcamp series and coding along with you, I decided to join online coding bootcamp, and I have to say this, after attending the bootcamp(part-time) for 6 weeks, I couldn't take it anymore, as we were being introduced new topic to cover every single week, whether we actually understood anything or not! So I decided to quit 6 weeks in. We were expected to read through study material and work on a project with only written instructions and almost little to NO video explanations/instructions. If I was stuck on a topic or code we were asked to just google/youtube it. I found more value in your videos then the bootcamp and therefore I'm just going to start the continue studying from your courses and the self taught route. Thanks again Brad!!!
Thanks for the support and for sharing! That bootcamp sounds super stressful and not at all conducive to learning; I would have stopped going as well. Glad the courses are helpful!
I appreciate this video very much. I was able to resolve one of the bugs that I've been struggling in the past few days. Thank you, you've earned a subscriber. :)
I'd love some content on creating a full stack React application that uses WordPress CMS, including how to deploy if we already have hosting for WordPress like through HostGator etc. Even if it were just a conversion within your Udemy course that would be cool.
I've brainstormed similar ideas before; glad to know there'd be interest for something like that! When you mention "full stack React" are you thinking Next.js with server-side-rendering via JSX - so we'd have to host the proxy / Next.js app somewhere else and it would dynamically pull data from the HostGator WP installation; or full stack in the sense that we're actually letting the HostGator WP still be the direct host for the site? Lately, I feel like the coolest thing ever (it would never happen) would be if PHP itself added some sort of JSX interpreter so that we could render JSX server-side in WordPress. It feels like the one missing piece from a dream setup with modern blocks. Anyways, sorry, just thinking out loud.
@@LearnWebCode what about humanmade github repo block editor ssr ? If you want to build custom blocks that render in React on the front end, and then have them also render server-side with hydration, this is the library for you.
You have just pulled it from my mouth - i have bought Beads Udemy full course about developing wordpress (Fictional Academy with Dr. Barksalot :D) and the material is great but at the end i didint fint what i am was looking for. I am React Developer and i would like to simply write a plugin which would display react front and back app with permissions and so on but not maintaining this in sorry freaking php files :)
If WordPress CMS were central to a client's (or my) setup and I'm trying to keep existing hosting (like HostGator), I think Next.js would do the job for sure. It would allow you to treat WordPress as a headless CMS while handling the React frontend, fetching content dynamically via the WordPress REST API or GraphQL. With Static Site Generation (SSG), you can pre-build pages, which reduces API calls and boosts performance. If you opt for Server-Side Rendering (SSR), Next.js will fetch content at runtime, but it still keeps things efficient. This approach keeps WordPress in place for content management while modernising the frontend with minimal complexity or added hosting costs. @LearnWebCode I really (bloody fking) like the creative thinking behind embedding JSX into PHP! It's a brilliant exercise in blending two worlds that rarely meet over tea. It could open up fresh ways to unify frontend and backend development. As much as I'd love to dive into it, the practical challenges might outweigh the thrill. The performance issues alone would have me cursing the heavens, though not before burning a day fiddling with PHP-V8, likely resulting in something I’d have to name PHrankenstein’s Monster (an apt description for both its creation and maintenance). Just as I'm eyeing a new Prime video in the corner of my screen, I’m now thinking: why not throw Deno into the mix? Picture it: Deno running serverless functions to handle JSX/TSX rendering, neatly isolating the task from PHP’s domain. It could manage SSR with the elegance of a well-bred Afghan Hound, without the clunkiness of Node.js trailing behind. Deno’s secure-by-default approach neatly dodges the security quirks that come with forcing JSX into PHP’s world. This way, PHP can focus on the data wrangling, while Deno quietly handles the SSR grunt work. Hmm... Re: deployment/OP: Next.js is likely your best bet. It manages React’s SSR gracefully while keeping WordPress as the content source, offering a streamlined option. If you prefer to keep everything within the WordPress ecosystem, Human Made’s Block Editor SSR could be an elegant solution for bringing React into WordPress, staying true to that exploration of server-side rendering without straying too far from home.
Brad -Brilliant introduction into all REST API things: - thanks. Your videos are a great resource for any one just starting out in all things REST API; Would you do some vids about the new Version 6.1 Keep rocking! ❤
Hey there! I've been following your videos since 2018 and they're wonderful, you're such a good teacher. You always makes the experience fun even to confusing things, thanks Brad. Just wanted to ask a question, how did you make your cursor display dimensions when you drag on the screen? been trying to find this on the Internet for quite a while now, thanks again looking forward to your response 😎
hello and thank you very much for this video, however I had some ideas and I would have liked you to tell me what you think about them, I'm not sure if I could use them with the applications that I use and APIs
Hi Brad, I have tried this nice feature and it is working fine. I do have a question though, can you also disable that feature again? I'm using postman and for some reason, I can't access the WP REST API anymore as soon as create an application password. The error message is: 401 Unauthorized - Unknown username. Check again or try your email address.
Hi Brad. Yesterday, I bought your WordPress developer course. And thank you very much for all your efforts. I like your way of teaching🙂 I also want to buy HTML & CSS course so will you update it in the future?
I have an API endpoint /wp-json/test/v1/update that I want to protect with basic authentication. I want to be able do BOTH of the following: - After logging in as admin via /wp-admin, I want to go to the endpoint on a browser and run it manually. - An external client calls the endpoint and run it nightly via Application Passwords. How can I achieve this?
Is there a way to make a User login system with application passwords???? Like I want any user to login from my node app???? So for only plugins like jwt seems to be able to do that
Hi! Is it possible to create the application password automatically inside a plugin? Lets say i want to have a button "create app pw" that the user does not to do that manually? Thanks in advance
Hello Brad, the videos have been super helpful. Needed your inputs on a specific use case wherein I am trying to load my wordpress website in webview on our android app. I dont want the user to be reauthenticate as they are already logged into app. The documentation for above API says user needs to be logged in. Is there a way I can achive logging in user to the wordpress site when he click to open the wordpress webbsite in the app in webview. Hope I am clear.
Hey! I love your channel. I made a study group in discord so that people can work through your tutorials together. Can you please tell your audience about it so more people can see it?
You're welcome! You can use "/wp-json/wp/v2/media" to send an image through the REST API; it should return with info about the image (its media number id) - then when you create a post you can provide a property named "featured_media" and give it the media id number you want.
Hi Guys, when do Brad release coupon codes for his courses in udemy? I already have his full stack javascript course and I'm impressed with his teaching style. I'm on a budget so I can't afford to buy the full price.
I am creating an android app to go alongwith my wordpress site. I want to authenticate users based username/password entered in the app. Is there a way to do it?
Thanks for this video; exactly what I was looking for! One issue that I'm running into though is our WordPress site only seems to accept API requests when NOT logged into WordPress, which seems very strange. Anything you can think of for why it would be doing that? I'm using the WordPress application password authentication method through an external Vue app.
Good day, pls I need help on how to authenticate that the current user is logged in in wp rest API permission callback. can the application password be used to achieve that? if so how will that be done and if not how can I achieve such a goal? pls if there is any code u have that I will appreciate it. thank you
hello teacher, my customer need to login wordpress by using gmail and facebook account and they can add post with that account. Then, they can display posts belong the account when they login in their website. Can you give me some solutions, please ?. Thanks teacher
Check out this and other similar StackOverflow threads: wordpress.stackexchange.com/questions/325776/add-media-with-wp-rest-api-v2-ii - Basically, this is the endpoint, but the problem is that the official WP Documentation page doesn't give any example on how to actually attach the file to the request, so Stack Overflow is needed: developer.wordpress.org/rest-api/reference/media/
Hey Brad great quick tutorial, also bought your "Wordpress Developer" course on Udemy. I followed this example and it works fine. I'd like to generate WP pages from a Filemaker DB, where/how do I add the the Auth key in the URL?
Hello, I tried to do this and unfortunately I'm getting the feedback below, I'm a beginner on the subject. However, I believe it is something very simple that I am not configuring, I was already trying to do this with n8n, but it didn't work, so I tried to do a test outside the tool and I received the same message. If you can give me a tip on how to solve it, I will be grateful. { "code": "rest_cannot_create", "message": "No permission to create posts with this user.", "date": { status: 401 } }
My recommendation for hosting your WordPress website is DreamHost and specifically their "Shared Unlimited" yearly plan (the exact plan I've used for 19 years). If you use my link to DreamHost it helps support my RUclips channel and costs you nothing extra: click.dreamhost.com/aff_c?offer_id=8&aff_id=17231
Brad you changed my life with the recent WORDPRESS COURSE. Hope to get some woo commerce from you reason being you explain process by process. LONG LIVE
Hello Oston. Just shooting my shot if you could help out by sharing this WordPress course as I am unable to purchase one myself. cheers
Hi Brad, This video just helped me a bunch! I have taken both your Wordpress course and your REACT course and have loved them and found them very useful. Since then, however, I have been trying to figure out how to use libcurl in my free standing C application to log in to my web site through the normal admin interface so I can then use my REST API's. Although I might have eventually succeeded, this approach is just head and shoulders above that in terms of simplicity. Thanks a million! You are a very good teacher. I appreciate your dedication to the subjects you teach, the depth you go into them and the way you make them clear.
Thanks so much! I really appreciate that. It's a great feeling when you find the perfect tool for a job.
No doubt, you're the best teacher ever. I've bought 5 of your courses and all of them deserve 5 stars. Btw around 6:17, your cat is saying something :)
Hi Brad, thanks for sharing how it is easy to authenticate with the REST API using application password. Your videos and courses are just top notch!
Thank you so much! 🙏
Hi Brad! First of all thank you for uploading these tutorials for free. (I've also purchased all your premium courses on udemy! )
After watching your RUclips coding bootcamp series and coding along with you, I decided to join online coding bootcamp, and I have to say this, after attending the bootcamp(part-time) for 6 weeks, I couldn't take it anymore, as we were being introduced new topic to cover every single week, whether we actually understood anything or not! So I decided to quit 6 weeks in. We were expected to read through study material and work on a project with only written instructions and almost little to NO video explanations/instructions. If I was stuck on a topic or code we were asked to just google/youtube it. I found more value in your videos then the bootcamp and therefore I'm just going to start the continue studying from your courses and the self taught route. Thanks again Brad!!!
Thanks for the support and for sharing! That bootcamp sounds super stressful and not at all conducive to learning; I would have stopped going as well. Glad the courses are helpful!
Thanks for this video! Was searching everywhere for how to set up the auth for HTTP POST requests for WP API. Exactly what I was looking for
I appreciate this video very much. I was able to resolve one of the bugs that I've been struggling in the past few days. Thank you, you've earned a subscriber. :)
Hey Brad. Hope you are doing well. Enjoyed the video. Hope your lovely kitty doing good as well. 💖
thank you so much, i am still using a third-party plugin but now i will try this
Thanks from Argentina! Tomorrow i have to show my progress at my first work as developer and this video saved my ass 😆
Thank you so much. that's exactly what i needed! Took them a while to add this feature. Before we had to inject plugins to do this!
Autthentication with application starts at 9:19
I'd love some content on creating a full stack React application that uses WordPress CMS, including how to deploy if we already have hosting for WordPress like through HostGator etc. Even if it were just a conversion within your Udemy course that would be cool.
I've brainstormed similar ideas before; glad to know there'd be interest for something like that! When you mention "full stack React" are you thinking Next.js with server-side-rendering via JSX - so we'd have to host the proxy / Next.js app somewhere else and it would dynamically pull data from the HostGator WP installation; or full stack in the sense that we're actually letting the HostGator WP still be the direct host for the site? Lately, I feel like the coolest thing ever (it would never happen) would be if PHP itself added some sort of JSX interpreter so that we could render JSX server-side in WordPress. It feels like the one missing piece from a dream setup with modern blocks. Anyways, sorry, just thinking out loud.
@@LearnWebCode what about humanmade github repo block editor ssr ? If you want to build custom blocks that render in React on the front end, and then have them also render server-side with hydration, this is the library for you.
@@LearnWebCode I think I'd defer to your judgment on this one - but if it helps I'd prefer avoiding added costs.
You have just pulled it from my mouth - i have bought Beads Udemy full course about developing wordpress (Fictional Academy with Dr. Barksalot :D) and the material is great but at the end i didint fint what i am was looking for. I am React Developer and i would like to simply write a plugin which would display react front and back app with permissions and so on but not maintaining this in sorry freaking php files :)
If WordPress CMS were central to a client's (or my) setup and I'm trying to keep existing hosting (like HostGator), I think Next.js would do the job for sure. It would allow you to treat WordPress as a headless CMS while handling the React frontend, fetching content dynamically via the WordPress REST API or GraphQL.
With Static Site Generation (SSG), you can pre-build pages, which reduces API calls and boosts performance. If you opt for Server-Side Rendering (SSR), Next.js will fetch content at runtime, but it still keeps things efficient. This approach keeps WordPress in place for content management while modernising the frontend with minimal complexity or added hosting costs.
@LearnWebCode I really (bloody fking) like the creative thinking behind embedding JSX into PHP! It's a brilliant exercise in blending two worlds that rarely meet over tea. It could open up fresh ways to unify frontend and backend development. As much as I'd love to dive into it, the practical challenges might outweigh the thrill. The performance issues alone would have me cursing the heavens, though not before burning a day fiddling with PHP-V8, likely resulting in something I’d have to name PHrankenstein’s Monster (an apt description for both its creation and maintenance).
Just as I'm eyeing a new Prime video in the corner of my screen, I’m now thinking: why not throw Deno into the mix? Picture it: Deno running serverless functions to handle JSX/TSX rendering, neatly isolating the task from PHP’s domain. It could manage SSR with the elegance of a well-bred Afghan Hound, without the clunkiness of Node.js trailing behind. Deno’s secure-by-default approach neatly dodges the security quirks that come with forcing JSX into PHP’s world. This way, PHP can focus on the data wrangling, while Deno quietly handles the SSR grunt work. Hmm...
Re: deployment/OP: Next.js is likely your best bet. It manages React’s SSR gracefully while keeping WordPress as the content source, offering a streamlined option. If you prefer to keep everything within the WordPress ecosystem, Human Made’s Block Editor SSR could be an elegant solution for bringing React into WordPress, staying true to that exploration of server-side rendering without straying too far from home.
Brad -Brilliant introduction into all REST API things: - thanks. Your videos are a great resource for any one just starting out in all things REST API; Would you do some vids about the new Version 6.1 Keep rocking! ❤
Awesome Content. Thank You.
Can you bring some more content abiut gatsby with wordpress or nextjs with wordpress as headless CMS.
Hey there! I've been following your videos since 2018 and they're wonderful, you're such a good teacher. You always makes the experience fun even to confusing things, thanks Brad.
Just wanted to ask a question, how did you make your cursor display dimensions when you drag on the screen? been trying to find this on the Internet for quite a while now, thanks again looking forward to your response 😎
Thanks, that help a lot
Thanks for sharing.
Thank you for your video.
What if we don't use mail and password for connexion to Wordpress and we use "continue with Gmail" instead ?
hello and thank you very much for this video, however I had some ideas and I would have liked you to tell me what you think about them, I'm not sure if I could use them with the applications that I use and APIs
Exactly what I looked for!👍👍👍👍🙌🙌
Hi Brad, how possible is it for my users to still make use of their WordPress username and passwords on my new Mobile Application?
Hi Brad, I have tried this nice feature and it is working fine. I do have a question though, can you also disable that feature again? I'm using postman and for some reason, I can't access the WP REST API anymore as soon as create an application password.
The error message is: 401 Unauthorized - Unknown username. Check again or try your email address.
How can we authenticate application password in custom rest api route?
Hi Brad. Yesterday, I bought your WordPress developer course. And thank you very much for all your efforts. I like your way of teaching🙂 I also want to buy HTML & CSS course so will you update it in the future?
Thanks Brad
Thank you sir. I respect you a lot. 🙏
I have an API endpoint /wp-json/test/v1/update that I want to protect with basic authentication. I want to be able do BOTH of the following:
- After logging in as admin via /wp-admin, I want to go to the endpoint on a browser and run it manually.
- An external client calls the endpoint and run it nightly via Application Passwords.
How can I achieve this?
Brad has a serious cat 😾 addiction 🤣
hey i tried this and still get the message: "Sorry, you are not allowed to create posts as this user." Any idea why?
Is there a way to make a User login system with application passwords????
Like I want any user to login from my node app???? So for only plugins like jwt seems to be able to do that
Hi!
Is it possible to create the application password automatically inside a plugin?
Lets say i want to have a button "create app pw" that the user does not to do that manually?
Thanks in advance
TOP!
I wonder in your course if you cover multi user, its bit hard to get the 20 char password
hello, can I use it with the g.sheet api connector module?
Hi Brad. Don't you consider to use the in-built vs code API client plugin? I forgot about the Postman and happy about that.
0:36 be careful not to get your coffee everywhere 😂
Hello Brad, the videos have been super helpful. Needed your inputs on a specific use case wherein I am trying to load my wordpress website in webview on our android app. I dont want the user to be reauthenticate as they are already logged into app. The documentation for above API says user needs to be logged in. Is there a way I can achive logging in user to the wordpress site when he click to open the wordpress webbsite in the app in webview. Hope I am clear.
Awesome tutorial. Thank you!!!
Hello, I have a question please. How do I register and sign in users using the REST API?
Hey! I love your channel. I made a study group in discord so that people can work through your tutorials together. Can you please tell your audience about it so more people can see it?
Great video! Thank!
Hey this is great :) Thank you!
But how can we handle images? For example adding featured image into post?
You're welcome! You can use "/wp-json/wp/v2/media" to send an image through the REST API; it should return with info about the image (its media number id) - then when you create a post you can provide a property named "featured_media" and give it the media id number you want.
Hi Guys, when do Brad release coupon codes for his courses in udemy? I already have his full stack javascript course and I'm impressed with his teaching style. I'm on a budget so I can't afford to buy the full price.
How can I use the wordpress api for customers to login to my app?
I am creating an android app to go alongwith my wordpress site. I want to authenticate users based username/password entered in the app. Is there a way to do it?
Can Application Passwords be used for login/signup workflows? If so, how?
Thanks for this video; exactly what I was looking for! One issue that I'm running into though is our WordPress site only seems to accept API requests when NOT logged into WordPress, which seems very strange. Anything you can think of for why it would be doing that? I'm using the WordPress application password authentication method through an external Vue app.
Awesome great content!
Good day, pls I need help on how to authenticate that the current user is logged in in wp rest API permission callback. can the application password be used to achieve that? if so how will that be done and if not how can I achieve such a goal? pls if there is any code u have that I will appreciate it. thank you
Would you consider doing a tutorial on svelte?
hello teacher, my customer need to login wordpress by using gmail and facebook account and they can add post with that account. Then, they can display posts belong the account when they login in their website. Can you give me some solutions, please ?. Thanks teacher
Thank you for this good video. But how can I upload image from to the WordPress media
Check out this and other similar StackOverflow threads: wordpress.stackexchange.com/questions/325776/add-media-with-wp-rest-api-v2-ii - Basically, this is the endpoint, but the problem is that the official WP Documentation page doesn't give any example on how to actually attach the file to the request, so Stack Overflow is needed: developer.wordpress.org/rest-api/reference/media/
Hi Brad I want to upload the image using wp API with JSON code can you please create a tutorial for it ? Thanks
hey, what if I need to use this for Custom Content Type , in ACF or Pods, if anyone knows this plz help me
Hey Brad great quick tutorial, also bought your "Wordpress Developer" course on Udemy.
I followed this example and it works fine. I'd like to generate WP pages from a Filemaker DB, where/how do I add the the Auth key in the URL?
Nice keyboard :D
Very cool! 👍
Sir we need more content about css and html see when you last upload tutorials about them plz
i have question how to use user authentication in wordpress
Very interesting video. Can we use this approach to sign in and sign up to wordpress from third party application? Thanks Brad for your effort.
yes
Pease upload a video about WP_List_Table
Can you do a PHP course on udemy??
😀
Where is next lesson for WordPress block theme
Hello, I tried to do this and unfortunately I'm getting the feedback below, I'm a beginner on the subject. However, I believe it is something very simple that I am not configuring, I was already trying to do this with n8n, but it didn't work, so I tried to do a test outside the tool and I received the same message. If you can give me a tip on how to solve it, I will be grateful.
{ "code": "rest_cannot_create", "message": "No permission to create posts with this user.", "date": { status: 401 } }