WordPress filter hook · part of WordPress core

xmlrpc_methods

A WordPress core filter that 11 plugins also fire themselves, running on 130+ sites between them.

How to use xmlrpc_methods

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'xmlrpc_methods', function( $sample_methods ) {
	// Change $sample_methods here.
	return $sample_methods;
}, 10, 1 );

Argument names come from Securizer's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

11 plugins that fire xmlrpc_methods

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Bastora Security Audit icon Bastora Security Audit60+ installs apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => '__return_false', 'pingback.extensions.getPingbacks' => '__return_false' ) ) includes/class-scanner.php:1443
  2. Securizer icon Securizer30+ installs apply_filters( 'xmlrpc_methods', $sample_methods ) includes/class-wpps-diagnostics.php:1261
  3. SecureLite Security icon SecureLite Security20+ installs apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => 1, 'pingback.extensions.getPingbacks' => 1, 'wp.getUsersBlogs' => 1 ) ) includes/class-verification.php:1008
  4. Bulwarden icon Bulwarden10+ installs apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => 'this:pingback_ping' ) ) includes/Client/Security_Scanner.php:291
  5. ProRank SEO icon ProRank SEO10+ installs apply_filters( 'xmlrpc_methods', ['prorank.head-cleanup.preview' => true] ) includes/Core/RestApi/HeadCleanupController.php:700
  6. Noshi-Kanamer icon Noshi-KanamerFewer than 10 installs apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => '__return_true' ) ) noshi-kanamer.php:897
  7. Fine MCP icon Fine MCPFewer than 10 installs apply_filters( 'xmlrpc_methods', ['system.listMethods' => 'this:listMethods'] ) includes/kits/security-integrity/src/config.php:79
  8. DevaGroup DevaGuard icon DevaGroup DevaGuardFewer than 10 installs apply_filters( 'xmlrpc_methods', array( 'system.multicall' => 'this:multiCall' ) ) includes/exposed.php:94
  9. Stoutwall icon StoutwallFewer than 10 installs apply_filters( 'xmlrpc_methods', ['pingback.ping' => 'this:pingback_ping'] ) includes/class-stoutwall-security.php:643
  10. Replai Disable Comments & Stop Spam icon Replai Disable Comments & Stop SpamFewer than 10 installs apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => 'this:pingback_ping' ) ) inc/status.php:74
  11. ShadowScan Security Link icon ShadowScan Security LinkFewer than 10 installs apply_filters( 'xmlrpc_methods', array() ) includes/guards/class-guard-access-control.php:375

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.