XML-RPC not working from PHP
-
Hello,
I have been trying to post to my blogs through XML-RPC using a PHP7 script and it is not working. The PHP script is sending the correct data payload (I tested) and it is working to post to self-hosted WordPress blogs, but not on blogs on WordPress.com. I have also tested the same XML payload using Postman and it is working. It’s just that PHP posting doesn’t work.
I am posting the PHP script I am using here: https://pastebin.com/DxtbJC2M
Thank you
The blog I need help with is: (visible only to logged in users)
-
Hi themintrubber,
For security reasons, XML-RPC is disabled on WordPress.com sites. You might want to look at REST API instead, and there is more information here:
https://developer.wordpress.com/
I hope this helps.
- The topic ‘XML-RPC not working from PHP’ is closed to new replies.