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:
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.
-
Bastora Security Audit60+ installs
apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => '__return_false', 'pingback.extensions.getPingbacks' => '__return_false' ) )includes/class-scanner.php:1443 -
Securizer30+ installs
apply_filters( 'xmlrpc_methods', $sample_methods )includes/class-wpps-diagnostics.php:1261 -
SecureLite Security20+ installs
apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => 1, 'pingback.extensions.getPingbacks' => 1, 'wp.getUsersBlogs' => 1 ) )includes/class-verification.php:1008 -
Bulwarden10+ installs
apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => 'this:pingback_ping' ) )includes/Client/Security_Scanner.php:291 -
ProRank SEO10+ installs
apply_filters( 'xmlrpc_methods', ['prorank.head-cleanup.preview' => true] )includes/Core/RestApi/HeadCleanupController.php:700 -
Noshi-KanamerFewer than 10 installs
apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => '__return_true' ) )noshi-kanamer.php:897 -
Fine MCPFewer than 10 installs
apply_filters( 'xmlrpc_methods', ['system.listMethods' => 'this:listMethods'] )includes/kits/security-integrity/src/config.php:79 -
DevaGroup DevaGuardFewer than 10 installs
apply_filters( 'xmlrpc_methods', array( 'system.multicall' => 'this:multiCall' ) )includes/exposed.php:94 -
StoutwallFewer than 10 installs
apply_filters( 'xmlrpc_methods', ['pingback.ping' => 'this:pingback_ping'] )includes/class-stoutwall-security.php:643 -
Replai Disable Comments & Stop SpamFewer than 10 installs
apply_filters( 'xmlrpc_methods', array( 'pingback.ping' => 'this:pingback_ping' ) )inc/status.php:74 -
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.