Skip to content

Instantly share code, notes, and snippets.

Created September 28, 2012 15:17
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Sample plugin for diabling XMLRPC server for WordPress >= v3.5
* Plugin Name: Disable XMLRPC
* Version: 0.1
* Plugin URI:
* Description: Disable XMLRPC server for WP >= v3.5
* Author: Lutz Schröer
* Author URI:
add_filter('xmlrpc_enabled', '__return_false');
Copy link

agnel commented Oct 2, 2012

Put this plugin in wordpress plugin repository

Copy link

frenchi commented Apr 1, 2014

Forked to include .php and .zip versions, which anyone using this will need to do for themselves before uploading to WP.

Copy link

khromov commented Sep 22, 2014

Great snippet!

You can also put the file in /wp-content/mu-plugins/ (create folder if it does not exist). That way you don't have to manually activate it - it will always load!

Copy link

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

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