Disable XML-RPC-API icon
Security

Disable XML-RPC-API

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

  • By Amin Nazemi
  • v2.1.7
  • Updated

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.

We haven't published a hands-on review of Disable XML-RPC-API yet. Want one, or need help with it? Send us a request.

How to install Disable XML-RPC-API

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Disable XML-RPC-API” and pick the one by Amin Nazemi.
  3. 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 --activate

Requirements: 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.

disable-xml-rpc-api — top hooks
// 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' );

Browse all 34 hooks with examples →

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.

Alternatives in Security

See all →

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for…

5+ million installs Reviewed 43 hooks

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team. Make security a priority with…

5+ million installs 98 hooks

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate.

3+ million installs 116 hooks

Simplified WordPress management. Manage site info, maintenance, security, & redirects.

3+ million installs 7 hooks