How to remove xmlrpc pingback ping for WordPress

How to remove xmlrpc pingback ping for WordPress? I found the answer by internet. In today’s post, I share it.

Two Methods:

1.Add a code in functions.php

add_filter('xmlrpc_enabled', '__return_false');

2.Just close the xml-rpc pingback port, and do not affect a third party offline publication features:

add_filter( 'xmlrpc_methods', 'remove_xmlrpc_pingback_ping' );
function remove_xmlrpc_pingback_ping( $methods ) {
unset( $methods['pingback.ping'] );
return $methods;
}

Related Posts

Top 57 Google ping url for WordPress