Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Latz
Created September 28, 2012 15:17
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Latz/3800468 to your computer and use it in GitHub Desktop.
Save Latz/3800468 to your computer and use it in GitHub Desktop.
Sample plugin for diabling XMLRPC server for WordPress >= v3.5
<?php
/**
* Plugin Name: Disable XMLRPC
* Version: 0.1
* Plugin URI: http://wpengineer.com/?p=2484
* Description: Disable XMLRPC server for WP >= v3.5
* Author: Lutz Schröer
* Author URI: http://elektroelch.net/
*/
add_filter('xmlrpc_enabled', '__return_false');
?>
@rvarbanov
Copy link

Have you tested to see if that still works with 4.2?

@JBlond
Copy link

JBlond commented Aug 17, 2015

Nope 4.2 won't run anymore with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment