How to programmatically add a post to a Wordpress blog externally in PHP

I would like to add a post to my Wordpress blog (my own hosting) from outside this blog using PHP. In short, I would like to do something like this:

http://www.mywebsite.com/addPost.php

Adds an example post to my blog and all I need. How to do it?

+3
source share
3 answers

WordPress implements a number of APIs that allow this: http://codex.wordpress.org/XML-RPC_Support

+6
source

In addition to supporting xml-rpc, you might be interested in the Click this feature:

http://codex.wordpress.org/Press_This

+2

Source: https://habr.com/ru/post/1753795/


All Articles