W
W
wolf-98302016-01-22 21:27:14
WordPress
wolf-9830, 2016-01-22 21:27:14

How to create a post in wordpress using a third-party script?

There is a site on which wordpress is installed, in the script folder there is a php script that receives a post request with data (this is the title of the article and the text of the article), how can I make sure that all this data is published on the site?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
planc, 2016-01-22
@planc

task from upwork detected )
https://codex.wordpress.org/Function_Reference/wp_...

I
Igor Vorotnev, 2016-01-24
@HeadOnFire

The script, as I understand it, is generally outside the WordPress scope, just a standalone piece of code in daddy? Hang an Ajax request handler in functions.php and send data to it with Ajax. Well, or use the REST API if you need a standalone script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question