Is it possible to check (via php) is XML-RPC enabled in WordPress?
Something like, to write a function which will test this.
if(is_xmlrpc_enabled()) {
//action
}
else {
//another action
}
Is it possible to check (via php) is XML-RPC enabled in WordPress?
Something like, to write a function which will test this.
if(is_xmlrpc_enabled()) {
//action
}
else {
//another action
}
You must be logged in to post a comment.
XML-RPC is enabled by default for WP versions > 3.5 (with ‘xmlrpc_enabled’ hook which allow to disable it)
For older versions, there is a field in the database (options table), which indicates if it is enabled or not.(This option is removed for wp > 3.5)
WordPress has two test methods in its XML-RPC server:
If you get the same result it means you are able to send the request properly to your WordPress XML-RPC server and receive the request properly.