API authentication with plugins?

[ad_1]

Let’s assume you have an idea for a WordPress plugin that inserts posts from an external source. This plugin will be used on websites where the website users do not log into WordPress. From what I have read/watched, the WordPress REST API requires some sort of authentication. So how would you handle authentication so that your plugin can use the WordPress REST API to enter new posts when unauthenticated users are using the site and triggering the add-post code?

I have never seen a plugin that performs similar functionality ask for an application password or require that the users be logged in with certain permissions. Would it be better to skip the WP Rest API and just do the add with PHP?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer