Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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');
?>
@agnel

This comment has been minimized.

Show comment Hide comment
@agnel

agnel Oct 2, 2012

Put this plugin in wordpress plugin repository

agnel commented Oct 2, 2012

Put this plugin in wordpress plugin repository

@frenchi

This comment has been minimized.

Show comment Hide comment
@frenchi

frenchi Apr 1, 2014

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

https://gist.github.com/frenchi/9908072

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.

https://gist.github.com/frenchi/9908072

@khromov

This comment has been minimized.

Show comment Hide comment
@khromov

khromov 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!

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!

@rvarbanov

This comment has been minimized.

Show comment Hide comment
@rvarbanov

rvarbanov May 21, 2015

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

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

@JBlond

This comment has been minimized.

Show comment Hide comment
@JBlond

JBlond Aug 17, 2015

Nope 4.2 won't run anymore with that.

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