Skip to main content
Login Join
Snippet · PHP

Disable XML-RPC (Security)

Shared by Sumit singh · April 23, 2026

1 copy
25 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' );
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments