How can I enable xmlrpc
in WordPress 5? I followed some tutorials related to this topic, but I didn't find the check box in the Settings writhing panel.
I got 403 Forbidden Access after every request.
Thanks.
How can I enable xmlrpc
in WordPress 5? I followed some tutorials related to this topic, but I didn't find the check box in the Settings writhing panel.
I got 403 Forbidden Access after every request.
Thanks.
Share Improve this question edited Jan 22, 2019 at 18:53 Kashif Rafique 2351 gold badge3 silver badges12 bronze badges asked Jan 22, 2019 at 16:56 alpha.romeoalpha.romeo 491 gold badge1 silver badge5 bronze badges 2- 2 It should be accessable by default. Maybe your host is blocking it or one of your plugin? – birgire Commented Jan 22, 2019 at 17:11
- 1 Can I ask why you're trying to enable XMLRPC? You should use the REST API if you're trying to make requests in code – Tom J Nowell ♦ Commented Dec 12, 2019 at 2:52
3 Answers
Reset to default 2What are you trying to do?
XML-RPC is enabled by default.
XML-RPC functionality is turned on by default since WordPress 3.5.
In previous versions of WordPress, XML-RPC was user enabled. To enable, go to Settings > Writing > Remote Publishing and check the checkbox.
Try going to http://example.com/wordpress/xmlrpc.php
, your should see a message saying "XML-RPC server accepts POST requests only."
Source
It could be that your hosting service is blocking those URLs for security reasons. Depending on the use cases, you might be able to rename the PHP file to something like XxnYtGkwuThOpws.php and use it as expected...
Updated WordPress is not working default xml-rpc but you can on/off manual follow my procedure:
1st install this plugin: WP Htaccess Editor
Then paste this code correctly without any spaces:
<Files "xmlrpc.php">
Order Allow,Deny
allow from all
</Files>
See the screenshot below