Disable Wordpress XMLRPC pingback function Print

  • 1

Disable via .htaccess

<Files "xmlrpc.php">
Order Allow,Deny
deny from all
</Files>


Disable XMLRPC.PHP in WordPress completely

To disable the XML-RPC functionality in WordPress, add to your theme’s functions.php file:

add_filter('xmlrpc_enabled','__return_false');

Disable only XMLRPC pingback function

Another action is to disable WordPress’ XMLRPC pingback function. You can achieve this by adding the following filter to your THEME’s functions.php file:

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

Was dit antwoord nuttig?

« Terug