How to Disable XML-RPC in WordPress?

XML-RPC is an underlying communication protocol for web services that allows PHP code to access services on the Internet. This protocol is also very flexible, allowing you to choose what methods of accessing the data are available. 

When you need XML-RPC?

If you manage your WordPress website via WordPress mobile APP, then you will need XML-RPC. It makes communication between the APP and Server. Perhaps if you are a Trackbacks and pingbacks or Jetpack user, then you will need this service. Otherwise, you can disable it.

To disable XML-RPC in WordPress, copy the following code and paste inside your function.php file. You can access function.php file inside the running theme directory.

					// Disable XML-RPC
add_action('wp_default_scripts', 'jltwp_adminify_disable_xmlrpc', 9999);
function jltwp_adminify_disable_xmlrpc()
    add_filter('xmlrpc_enabled', '__return_false');

It’s very easy to disable XML-RPC using WP Adminify pluign. After installation click on WP Adminify > Tweaks > Head. Take a look at the last option named Disable XML-RPC. Just enable it and save settings. 

Disable XML-RPC
August 28, 2021
Head Tips and Tutorials
Was this article helpful?

© 2021-2024 - Adminify | All rights reserved

WP Adminfy accepted payment methods