Disables XML-RPC

Disables XML-RPC to improve security and prevent external access.

PHP
/**
 * Snippet Name:     Disables XML-RPC
 * Snippet Author:   coding-bunny.com
 * Description:      Disables XML-RPC to improve security and prevent external access.
 */

function cb_disable_xmlrpc() {
    // Disable XML-RPC
    add_filter( 'xmlrpc_enabled', '__return_false' );
}
add_action( 'init', 'cb_disable_xmlrpc' );

How To Implement This Solution?

Leave a Reply

Your email address will not be published. Required fields are marked *

My Agile Privacy
This site uses technical and profiling cookies. You can accept, decline or customize cookies by pressing the desired buttons. By closing this policy you will continue without accepting.

Need help?

Choose one of the following options:

Powered by CodingBunny