Overview
Disable XML-RPC-API describes itself as: “A simple and lightweight plugin to disable XML-RPC API, X-Pingback and pingback-ping in WordPress 3.5+ for a faster and more secure website”
It is active on 100,000+ WordPress sites and rated 4.2 out of 5 by 43 users on WordPress.org. Developers can extend it through 11 actions and 23 filters, listed below.
How to install Disable XML-RPC-API
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “Disable XML-RPC-API” and pick the one by Amin Nazemi.
- Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI
Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:
wp plugin install disable-xml-rpc-api --activateRequirements: WordPress 5.0+ · tested up to WordPress 6.9.11
Hooks & customisation
Disable XML-RPC-API 2.1.7 fires 11 actions and 23 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.
// Filter dismiss-notice.js URL.
apply_filters( 'pand_dismiss_notice_js_url', $js_url, $composer_path );
// Filter to activate another filter providing a simpler use case.
apply_filters( 'pand_theme_loader', false );
// Filter in lib/skelet/classes/setup.class.php
apply_filters( 'skelet_fa4', false );
// Filter in disable-xml-rpc-api.php
apply_filters( 'header_1', 'HTTP/1.0 404 Not Found' );
// Filter in disable-xml-rpc-api.php
apply_filters( 'header_2', 'Status: 404 Not Found' );
// Action in lib/skelet/fields/wp_editor/wp_editor.php
do_action( 'media_buttons' );Need Disable XML-RPC-API customised?
Tell us what you want changed, added or fixed and we'll reply with an estimate.
WP EXPERTS is independent and not affiliated with Amin Nazemi. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.