Wordpress JSON REST API Tutorial for beginners(#10) Create post using Basic Auth and wp_remote_post

preview_player
Показать описание
In this video we have discussed about,

Create Post by using wp_remote_post and Rest Api

The Basic Authentication method is not recommended in WP because you send login and password in every API call. But I think it is better know how to work with it anyway because similar requests use many others APIs

Steps:


2. Install and activate

Using Postman

Authorization : username and password

Headers : Basic base64_encode('username:password')


Get All Post

Delete Post

GITHub Link:

Documentation Study:

SOCIAL :
===============

Also you can learn Wordpress Custom
===============

Tags
===================
Wordpress JSON REST API Development tutorial for beginners step by step,
Wordpress JSON REST API Development tutorial,
Wordpress JSON REST API Development tutorial in hindi,
Wordpress JSON REST API Development,
Wordpress JSON REST API Development for beginners,
Wordpress JSON REST API Development tutorial for beginners,
Wordpress JSON REST API Development tutorial for beginners,
Wordpress JSON REST API Development tutorials guide,
learn Wordpress JSON REST API Development framework step by step,
learn Wordpress JSON REST API Development from scratch,
WordPress JSON REST API,
WordPress JSON REST API Development for Beginners: Developing a JSON REST API,
Get started with the WordPress JSON REST API,
The WordPress JSON REST API,
online web tutor,
profotech solutions,

Thanks
Online Web Tutor
Keep learning and Sharing :)
Рекомендации по теме
Комментарии
Автор

You are a genius Boss! I loved your tutorials. Before 5 Hours I watching your Rest API playlist. Love u, Boss, from Bangladesh.

mdborhanuddin
Автор

How we use these API integrate it to apps

RaniMishra
Автор

Hi, while I am creating post its showing me this error even I have updated .htaccess code and using accurate username and password.

[body] => {"code":"rest_not_logged_in", "message":"You are not currently logged in.", "data":{"status":401}}

.htaccess file
RewriteRule .* -

could you please help me to fix this issue

rohitgour
Автор

nice video bro, that helps me to undertand a little more about rest API with wordpress

TonnBR
Автор

I want a video on how to show data in array format through wp/v2/post

linabesarkar
Автор

This is awesome. Thanks so much for laying the step by step for WP REST API. If we need to extend the functionality, so the WP can fetch and create post automatically (let say every 24 hrs) without visiting the create-post.php. How do we achieve this? can we use Wordpress Cron job? Thanks

cellmate
join shbcf.ru