Skip to content

Instantly share code, notes, and snippets.

@chrisdavidmiles
Created June 12, 2025 23:51
Show Gist options
  • Save chrisdavidmiles/d3401dbd2aedc21de24d3dc0b6126e43 to your computer and use it in GitHub Desktop.
Save chrisdavidmiles/d3401dbd2aedc21de24d3dc0b6126e43 to your computer and use it in GitHub Desktop.
WordPress Plugin: Disable XML-RPC
<?php
/*
Plugin Name: Disable XML-RPC
Description: Completely disables XML-RPC functionality in WordPress.
Version: 1.0
Update URI: false
*/
add_filter('xmlrpc_enabled', '__return_false');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment