MainWP Community

Disable XML-PRC Endpoints

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'xmlrpc_methods', function () {
    return [];
}, PHP_INT_MAX );