Disable Wordpress XMLRPC pingback function Print

  • 1

Disable via .htaccess

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

Disable XMLRPC.PHP in WordPress completely

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


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:

  unset($methods['pingback.ping']);return $methods;});

Was dit antwoord nuttig?

« Terug