Skip to main content
Login Join
Snippet · PHP

Disable XML-RPC (Security)

Shared by Sumit singh · April 23, 2026

1 copy
15 views
Back to Snippets

Completely disables the XML-RPC feature
Prevents brute-force attacks via xmlrpc.php
Reduces unnecessary server load

add_filter( 'xmlrpc_enabled', '__return_false' );