How to remove xmlrpc pingback ping for WordPress? I found the answer on the internet.

2 Methods to Disable XML-RPC Pingback in WordPress. In today’s post, I share it with you. Enjoy!


Two Methods:

1. Add a code in functions.php

add_filter('xmlrpc_enabled', '__return_false');

2. Just close the xmlrpc 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;
}

You May Also Like: